MacOS delete key (deleteLeft) jumps to beginning of line when deleting last char on last line of a buffer
This may be an interaction with Awesome Emacs Keymap since the problem doesn't occur until I move around with Emacs keybindings. However, I turned on the Developer: Toggle Keyboard Shortcuts Troubleshooting and see the delete key being properly detected. Regardless, if I uninstall Code Spell Checker the problem goes away.
I have a line of a few characters and hit the delete key: one char to the left is deleted and then the cursor moves to the beginning of the current line. The line has to be the very last line of the buffer though.
123456789 <-- Line before delete (very last line in the buffer)
^
cursor
12345678 <-- Line after delete
^
cursor
2024-12-06 11:21:37.152 [info] [KeybindingService]: / Soft dispatching keyboard event
2024-12-06 11:21:37.152 [info] [KeybindingService]: | Resolving [Backspace]
2024-12-06 11:21:37.152 [info] [KeybindingService]: \ From 3 keybinding entries, matched deleteLeft, when: textInputFocus, source: built-in.
2024-12-06 11:21:37.152 [info] [KeybindingService]: / Received keydown event - modifiers: [], code: Backspace, keyCode: 8, key: Backspace
2024-12-06 11:21:37.152 [info] [KeybindingService]: | Converted keydown event - modifiers: [], code: Backspace, keyCode: 1 ('Backspace')
2024-12-06 11:21:37.153 [info] [KeybindingService]: | Resolving [Backspace]
2024-12-06 11:21:37.153 [info] [KeybindingService]: \ From 3 keybinding entries, matched deleteLeft, when: textInputFocus, source: built-in.
2024-12-06 11:21:37.153 [info] [KeybindingService]: + Invoking command deleteLeft. <----------- Correct
@mrfirmware,
I have no idea what is going on. The spell checker doesn't bind any keys by default.
Does the file type make a difference?
The only place it might have an impact is with AutoComplete Suggestions.
Please try disabling cSpell.showAutocompleteDirectiveSuggestions and see if it makes a difference.
It's a markdown file. I've disabled show auto completions and no joy. Not a big deal.
@mrfirmware,
This is what I am seeing:
https://github.com/user-attachments/assets/ef835ef3-ad14-4e27-a269-972834a50798