diff options
author | waker <wakeroid@gmail.com> | 2010-10-24 18:21:26 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2010-10-24 18:21:26 +0200 |
commit | 07a6beda2ad5903c2308c4865e98a923aeaa8d18 (patch) | |
tree | c8daf475e7541aa936b4ee354fdb54472cad5276 /plugins | |
parent | 39fd8882db9509c6e9885eab2a50a864081867a1 (diff) |
make 'n' hotkey working with numlock
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/gtkui/callbacks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/gtkui/callbacks.c b/plugins/gtkui/callbacks.c index 58a3da41..8e41a1ee 100644 --- a/plugins/gtkui/callbacks.c +++ b/plugins/gtkui/callbacks.c @@ -312,7 +312,7 @@ on_mainwin_key_press_event (GtkWidget *widget, gpointer user_data) { uint32_t maskedstate = (event->state &~ (GDK_LOCK_MASK | GDK_MOD2_MASK | GDK_MOD3_MASK | GDK_MOD5_MASK)) & 0xfff; - if (event->keyval == GDK_n && !event->state) { + if ((maskedstate == GDK_MOD1_MASK || maskedstate == 0) && event->keyval == GDK_n) { // button for that one is not in toolbar anymore, so handle it manually deadbeef->sendmessage (M_PLAYRANDOM, 0, 0, 0); } |