diff options
author | Nicolas Aguirre <aguirre.nicolas@gmail.com> | 2014-01-11 10:23:50 +0100 |
---|---|---|
committer | Cedric BAIL <c.bail@partner.samsung.com> | 2014-06-18 11:34:07 +0200 |
commit | 6d7caf9450906d565d58d42617ba2a4028f7f247 (patch) | |
tree | 0e73704744ef531d3633dd3f875c159ae138285c /src | |
parent | e4538b94d1a8ed7983c39e44e30df47f8536915c (diff) |
ecore_cocoa: switch keys to map correctly on OS-X.
os-x is notoriously switching the meaning of those keys
calling "BackSpace" "Delete, and "Delete" "Forward Delete"
Original patch by Pierre Tardy
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/ecore_cocoa/Ecore_Cocoa_Keys.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/ecore_cocoa/Ecore_Cocoa_Keys.h b/src/lib/ecore_cocoa/Ecore_Cocoa_Keys.h index 7068bc22a8..f238df2977 100644 --- a/src/lib/ecore_cocoa/Ecore_Cocoa_Keys.h +++ b/src/lib/ecore_cocoa/Ecore_Cocoa_Keys.h | |||
@@ -14,7 +14,8 @@ static const struct _ecore_cocoa_keys_s keystable[] = | |||
14 | { 0, "0x00", "" }, | 14 | { 0, "0x00", "" }, |
15 | { 0, "First", "" }, | 15 | { 0, "First", "" }, |
16 | { 3, "Return", "\015" }, | 16 | { 3, "Return", "\015" }, |
17 | { 8, "BackSpace", "\010" }, | 17 | // OS-X's backspace and Delete are reversed! |
18 | { 8, "Delete", "\010" }, | ||
18 | { 9, "Tab", "\011" }, | 19 | { 9, "Tab", "\011" }, |
19 | { 12, "Clear", "" }, | 20 | { 12, "Clear", "" }, |
20 | { 13, "Return", "\015" }, | 21 | { 13, "Return", "\015" }, |
@@ -90,10 +91,11 @@ static const struct _ecore_cocoa_keys_s keystable[] = | |||
90 | { 123, "braceleft", "" }, | 91 | { 123, "braceleft", "" }, |
91 | { 124, "pipe", "" }, | 92 | { 124, "pipe", "" }, |
92 | { 125, "braceright", "" }, | 93 | { 125, "braceright", "" }, |
93 | { 127, "Delete", "\177" }, | 94 | // OS-X's backspace and Delete are reversed! |
95 | { 127, "BackSpace", "\177" }, | ||
94 | { 126, "asciitilde", "~" }, | 96 | { 126, "asciitilde", "~" }, |
95 | 97 | ||
96 | { 160, "w0", "" }, | 98 | { 160, "w0", "" }, |
97 | { 161, "w1", "" }, | 99 | { 161, "w1", "" }, |
98 | { 162, "w2", "" }, | 100 | { 162, "w2", "" }, |
99 | { 163, "w3", "" }, | 101 | { 163, "w3", "" }, |