diff options
Diffstat (limited to 'views/controls/button/custom_button.cc')
-rw-r--r-- | views/controls/button/custom_button.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/views/controls/button/custom_button.cc b/views/controls/button/custom_button.cc index 69ac840..f9a58f6 100644 --- a/views/controls/button/custom_button.cc +++ b/views/controls/button/custom_button.cc @@ -96,8 +96,8 @@ bool CustomButton::AcceleratorPressed(const Accelerator& accelerator) { memset(&gdk_key, 0, sizeof(GdkEventKey)); gdk_key.type = GDK_KEY_RELEASE; gdk_key.keyval = accelerator.GetKeyCode(); - gdk_key.state = accelerator.IsAltDown() << 3 + - accelerator.IsCtrlDown() << 2 + + gdk_key.state = (accelerator.IsAltDown() << 3) + + (accelerator.IsCtrlDown() << 2) + accelerator.IsShiftDown(); KeyEvent key_event(&gdk_key, false); #endif |