aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/options_keys.c
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2014-10-02 21:42:03 +0200
committerBoris Faure <billiob@gmail.com>2014-10-02 21:42:03 +0200
commitbf288c8031718d4c5ee64ea0135a4aaf1697ad1c (patch)
treea49058954cd6df693777904e75fbd0eb6c72b2d1 /src/bin/options_keys.c
parenttab can also be called ISO_Left_Tab. Closes T1698 (diff)
downloadterminology-bf288c8031718d4c5ee64ea0135a4aaf1697ad1c.tar.gz
restrict modifiers used on key-bindings. Should fix https://phab.enlightenment.org/T1695
Diffstat (limited to 'src/bin/options_keys.c')
-rw-r--r--src/bin/options_keys.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/bin/options_keys.c b/src/bin/options_keys.c
index 05a07e2..65bb79a 100644
--- a/src/bin/options_keys.c
+++ b/src/bin/options_keys.c
@@ -88,10 +88,18 @@ _cb_key_up(void *data, Evas *e EINA_UNUSED,
_hover_del(obj);
+ if (evas_key_modifier_is_set(ev->modifiers, "Meta") ||
+ evas_key_modifier_is_set(ev->modifiers, "Hyper") ||
+ evas_key_modifier_is_set(ev->modifiers, "ISO_Level3_Shift"))
+ {
+ ERR("Modifiers Meta/Hyper/ISO_Level3_Shift are not supported in keybindings");
+ return;
+ }
+
action = evas_object_data_get(bx, "action");
if (!action)
{
- ERR("can't find any action to associate with");
+ ERR("can't find any action to associate with.");
return;
}