diff options
Diffstat (limited to 'src/gui/gui-key.c')
-rw-r--r-- | src/gui/gui-key.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/gui-key.c b/src/gui/gui-key.c index 93938ec2a..6c338eabf 100644 --- a/src/gui/gui-key.c +++ b/src/gui/gui-key.c @@ -1009,6 +1009,11 @@ gui_key_focus_command (const char *key, int context, if (gui_key_cmp (key, ptr_key->area_key, context) != 0) continue; + /* ignore mouse event if not explicit requested */ + if ((context == GUI_KEY_CONTEXT_MOUSE) && + (string_match (key, "*-event-*", 1) != string_match (ptr_key->area_key, "*-event-*", 1))) + continue; + /* check if focus is matching with key */ matching = gui_key_focus_matching (ptr_key, hashtable_focus); if (!matching) |