diff options
author | N0hbdy <austen.mcrae@gmail.com> | 2017-10-24 10:32:40 -0700 |
---|---|---|
committer | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-10-30 22:51:02 +0100 |
commit | f3fc07272cc5aae787911ed3c0224f7b37d060e7 (patch) | |
tree | c01988d87cb4d7988f507986a52bb9c3782781ae /platform | |
parent | e10ee8765fc2e44a0ca7e6d42bbfd405f547f3ab (diff) |
Add Colemak keybindings to editor for osx
Diffstat (limited to 'platform')
-rw-r--r-- | platform/osx/os_osx.mm | 2 | ||||
-rw-r--r-- | platform/x11/os_x11.cpp | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm index d67bc653c9..33586086dc 100644 --- a/platform/osx/os_osx.mm +++ b/platform/osx/os_osx.mm @@ -1834,6 +1834,8 @@ OS::LatinKeyboardVariant OS_OSX::get_latin_keyboard_variant() const { layout = LATIN_KEYBOARD_DVORAK; } else if ([test isEqualToString:@"xvlcwk"]) { layout = LATIN_KEYBOARD_NEO; + } else if ([test isEqualToString:@"qwfpgj"]) { + layout = LATIN_KEYBOARD_COLEMAK; } [test release]; diff --git a/platform/x11/os_x11.cpp b/platform/x11/os_x11.cpp index d5f0efaf00..09193e0a2b 100644 --- a/platform/x11/os_x11.cpp +++ b/platform/x11/os_x11.cpp @@ -2268,9 +2268,9 @@ OS::LatinKeyboardVariant OS_X11::get_latin_keyboard_variant() const { Vector<String> info = String(layout).split("+"); ERR_FAIL_INDEX_V(1, info.size(), LATIN_KEYBOARD_QWERTY); - /*if (info[1].find("colemak") != -1) { + if (info[1].find("colemak") != -1) { return LATIN_KEYBOARD_COLEMAK; - } else*/ if (info[1].find("qwertz") != -1) { + } else if (info[1].find("qwertz") != -1) { return LATIN_KEYBOARD_QWERTZ; } else if (info[1].find("azerty") != -1) { return LATIN_KEYBOARD_AZERTY; |