diff options
Diffstat (limited to 'src/views/unix/SkOSWindow_Unix.cpp')
-rw-r--r-- | src/views/unix/SkOSWindow_Unix.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/views/unix/SkOSWindow_Unix.cpp b/src/views/unix/SkOSWindow_Unix.cpp index 17339010b5..dc51f6421b 100644 --- a/src/views/unix/SkOSWindow_Unix.cpp +++ b/src/views/unix/SkOSWindow_Unix.cpp @@ -225,7 +225,7 @@ SkOSWindow::NextXEventResult SkOSWindow::nextXEvent() { SkView::Click::kMoved_State, NULL, getModi(evt)); break; case KeyPress: { - int shiftLevel = (evt.xkey.keycode & ShiftMask) ? 1 : 0; + int shiftLevel = (evt.xkey.state & ShiftMask) ? 1 : 0; KeySym keysym = XkbKeycodeToKeysym(dsp, evt.xkey.keycode, 0, shiftLevel); if (keysym == XK_Escape) { |