diff options
author | Pierre Ossman <ossman@cendio.se> | 2011-07-12 16:10:16 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2011-07-12 16:10:16 +0000 |
commit | f8450ca5a0e984eb1509e0e08f63a32e133eb1fc (patch) | |
tree | e5a7fbb18d614afb7c8e3deca12fe5dd74c205aa /vncviewer/Viewport.cxx | |
parent | 991b4fe852ecb246eefe3f595fc7a406bc019876 (diff) | |
download | tigervnc-f8450ca5a0e984eb1509e0e08f63a32e133eb1fc.tar.gz tigervnc-f8450ca5a0e984eb1509e0e08f63a32e133eb1fc.zip |
More consolidation into handleKeyEvent().
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4581 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'vncviewer/Viewport.cxx')
-rw-r--r-- | vncviewer/Viewport.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/vncviewer/Viewport.cxx b/vncviewer/Viewport.cxx index 770f1279..267c6f65 100644 --- a/vncviewer/Viewport.cxx +++ b/vncviewer/Viewport.cxx @@ -387,11 +387,9 @@ int Viewport::handle(int event) case FL_UNFOCUS: // Release all keys that were pressed as that generally makes most // sense (e.g. Alt+Tab where we only see the Alt press) - for (iter = downKeySym.begin();iter != downKeySym.end();++iter) { - vlog.debug("Key released: 0x%04x => 0x%04x", iter->first, iter->second); - cc->writer()->keyEvent(iter->second, false); - } - downKeySym.clear(); + while (!downKeySym.empty()) + handleKeyEvent(downKeySym.begin()->first, downKeySym.begin()->first, + "", false); return 1; case FL_KEYDOWN: |