discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=b5103ac3e282fd6afcfb379e62c9e4179c60ee33

commit b5103ac3e282fd6afcfb379e62c9e4179c60ee33
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Mon Feb 1 11:31:57 2016 -0500

    compare key OR keyname in e_bindings_key_event_find()
    
    keys such as tab will have different names in key and keyname, eg.
    "Tab" vs "ISO_Left_Tab", and both names are valid for comparisons
    
    thanks to @billiob for pointing out this regression
---
 src/bin/e_bindings.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/e_bindings.c b/src/bin/e_bindings.c
index e3a9c63..89cb8a9 100644
--- a/src/bin/e_bindings.c
+++ b/src/bin/e_bindings.c
@@ -681,7 +681,7 @@ e_bindings_key_event_find(E_Binding_Context ctxt, 
Ecore_Event_Key *ev, E_Binding
    mod = _e_bindings_modifiers(ev->modifiers);
    EINA_LIST_FOREACH(key_bindings, l, binding)
      {
-        if ((binding->key) && (!strcmp(binding->key, ev->key)) && 
(!strcmp(binding->key, ev->keyname)) &&
+        if ((binding->key) && ((!strcmp(binding->key, ev->key)) || 
(!strcmp(binding->key, ev->keyname))) &&
             ((binding->any_mod) || (binding->mod == mod)))
           {
              if (!_e_bindings_context_match(binding->ctxt, ctxt)) continue;

-- 


Reply via email to