[Orxonox-commit 1648] r6366 - code/branches/presentation2/src/libraries/core/input
rgrieder at orxonox.net
rgrieder at orxonox.net
Wed Dec 16 21:44:22 CET 2009
Author: rgrieder
Date: 2009-12-16 21:44:22 +0100 (Wed, 16 Dec 2009)
New Revision: 6366
Modified:
code/branches/presentation2/src/libraries/core/input/Keyboard.cc
Log:
Fixed alt+tab problem: This key combination should be ignored on all platforms and in all input handlers.
Modified: code/branches/presentation2/src/libraries/core/input/Keyboard.cc
===================================================================
--- code/branches/presentation2/src/libraries/core/input/Keyboard.cc 2009-12-16 20:43:36 UTC (rev 6365)
+++ code/branches/presentation2/src/libraries/core/input/Keyboard.cc 2009-12-16 20:44:22 UTC (rev 6366)
@@ -42,6 +42,10 @@
if(arg.key == OIS::KC_RSHIFT || arg.key == OIS::KC_LSHIFT)
modifiers_ |= KeyboardModifier::Shift; // shift key
+ // Do not distribute the alt+tab event (messes with the operating system)
+ if ((modifiers_ & KeyboardModifier::Alt) != 0 && arg.key == OIS::KC_TAB)
+ return true;
+
KeyEvent evt(arg);
super::buttonPressed(evt);
return true;
More information about the Orxonox-commit
mailing list