|
Line 0
Link Here
|
|
|
1 |
# Shift key not released if group switch is something other than Control-Shift: |
| 2 |
# https://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg1218650.html |
| 3 |
|
| 4 |
--- src/osgGA/EventQueue.cpp.orig |
| 5 |
+++ src/osgGA/EventQueue.cpp |
| 6 |
@@ -337,7 +337,7 @@ void EventQueue::mouseButtonRelease(floa |
| 7 |
|
| 8 |
void EventQueue::keyPress(int key, double time, int unmodifiedKey) |
| 9 |
{ |
| 10 |
- switch(key) |
| 11 |
+ switch(unmodifiedKey) |
| 12 |
{ |
| 13 |
case(GUIEventAdapter::KEY_Shift_L): _accumulateEventState->setModKeyMask(GUIEventAdapter::MODKEY_LEFT_SHIFT | _accumulateEventState->getModKeyMask()); break; |
| 14 |
case(GUIEventAdapter::KEY_Shift_R): _accumulateEventState->setModKeyMask(GUIEventAdapter::MODKEY_RIGHT_SHIFT | _accumulateEventState->getModKeyMask()); break; |
| 15 |
@@ -381,7 +381,7 @@ void EventQueue::keyPress(int key, doubl |
| 16 |
|
| 17 |
void EventQueue::keyRelease(int key, double time, int unmodifiedKey) |
| 18 |
{ |
| 19 |
- switch(key) |
| 20 |
+ switch(unmodifiedKey) |
| 21 |
{ |
| 22 |
case(GUIEventAdapter::KEY_Shift_L): _accumulateEventState->setModKeyMask(~GUIEventAdapter::MODKEY_LEFT_SHIFT & _accumulateEventState->getModKeyMask()); break; |
| 23 |
case(GUIEventAdapter::KEY_Shift_R): _accumulateEventState->setModKeyMask(~GUIEventAdapter::MODKEY_RIGHT_SHIFT & _accumulateEventState->getModKeyMask()); break; |