-
Notifications
You must be signed in to change notification settings - Fork 57
Backspace does not work with Colemak keyboard layout #192
Comments
Can you post the results of typing caps lock after running the following devtools console script:
|
For some reason the You should be able to work around this issue using the public keystroke resolver API. If you try something like this in your atom.keymaps.addKeystrokeResolver ({event}) ->
if event.key is 'CapsLock' and event.keyCode is 8 and event.ctrlKey and event.type is 'keydown'
return 'backspace' |
Thanks @Ben3eeE For the time being, I have achieved satisfactory behaviour from the following: atom.keymaps.addKeystrokeResolver ({event}) ->
if event.key is 'CapsLock' and event.keyCode is 8 and !event.ctrlKey and event.type is 'keydown'
return 'backspace'
if event.key is 'CapsLock' and event.keyCode is 8 and event.ctrlKey and event.type is 'keydown'
return 'ctrl-backspace' Not really familiar with coffee, so hopefully this syntax is correct. |
Hey, I tried to repro this on Ubuntu to see if we could add the workaround into @Gert-dev Did you only see this on Linux with the Ctrl modifier? If so it is possible that this was fixed in Atom 1.12.7 with the Ctrl modifier fix. Can you test it out and see if it works for you with the latest version? @MattKang How did you install the colemak layout? |
@Ben3eeE Just updated to Atom 1.12.7, and the issue persists for me. I installed the Colemak layout via colemak.com. I use Version with Caps Lock as Backspace. |
|
Hi! I just installed 1.13.0 ia32 today and the Colemak caps issue exists. |
I'm also unable to use the Colemak caps backspace in windows 10 using v1.15.0 x64 |
Updated temporary atom.keymaps.addKeystrokeResolver ({event}) ->
if event.key is 'CapsLock' and event.keyCode is 8 and event.type is 'keydown'
return 'backspace'
if event.key is 'Delete' and event.keyCode is 8 and event.ctrlKey and event.type is 'keydown'
return 'ctrl-backspace' Fixes Ctrl+Backspace in v1.16.0. |
@MattKang Atom 1.19 upgraded Electron which might have resolved this issue for you. Can you confirm if it is working when using Atom 1.19 without the workaround or do you still see the same issue? |
Hi all, Anyone knows how I can fix it? Bowen |
@Ben3eeE It appears this Backspace issue has been resolved! On Atom 1.19.3, and Backspace appears to function correctly without the use of the workaround. |
@MattKang Do you know how I can fix the problem I mentioned above? |
@BowenWang The To figure out what key commands are actually being triggered, you need to run this devtools console script: All the best! |
@MattKang All right, I will try it. Thanks! Bowen |
@BowenWang If you need help to write the function you can ask on Discuss or the Atom slack. On Discuss and in the Atom Slack team, there are a bunch of helpful community members that should be willing to point you in the right direction. I'm going to close this issue out because it has been resolved with the Electron upgrade 🎉 |
I use the Colemak layout as my primary input method on Windows 10. This layout remaps the caps lock key as backspace. Keymap does not recognize this remapping, and the backspace functionality does not work.
Expected Behaviour:
Press Caps Lock key to produce Backspace
Observed Behaviour:
Press Caps Lock key without result. When I press the Caps Lock key, the Key Binding Resolver recognizes it as Caps Lock (instead of Backspace) but does not toggle caps lock on/off.
I have noticed this since v1.12 of Atom. I am using the Colemak layout as provided here.
The text was updated successfully, but these errors were encountered: