jaehwan pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=ecd7385ab3c7b19eb5d542763364f5e1cd7e4a59

commit ecd7385ab3c7b19eb5d542763364f5e1cd7e4a59
Author: Jaehwan Kim <jae.hwan....@samsung.com>
Date:   Mon Dec 5 10:42:05 2016 +0900

    shortcut: assign the keyname by using strdup.
    
    By this bug, the changed key doesn't work.
    
    @fix
---
 src/bin/ui/shortcuts/shortcuts.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/ui/shortcuts/shortcuts.c b/src/bin/ui/shortcuts/shortcuts.c
index 9b1b11c..6e2ff00 100644
--- a/src/bin/ui/shortcuts/shortcuts.c
+++ b/src/bin/ui/shortcuts/shortcuts.c
@@ -669,7 +669,7 @@ shortcuts_shortcut_new_set(Shortcut_Type type, 
Evas_Event_Key_Up *ev)
      {
         shortcut->modifiers = sc.modifiers;
         shortcut->keycode = sc.keycode;
-        shortcut->keyname = sc.keyname;
+        shortcut->keyname = strdup(sc.keyname);
         shortcut->combination = _combination_string_get(shortcut);
         ap.shortcuts->shortcuts = 
eina_list_sorted_insert(ap.shortcuts->shortcuts,
                                                           (Eina_Compare_Cb) 
_shortcut_cmp, shortcut);

-- 


Reply via email to