Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS delete key (deleteLeft) jumps to beginning of line when deleting last char on last line of a buffer #3893

Open
mrfirmware opened this issue Dec 6, 2024 · 3 comments

Comments

@mrfirmware
Copy link

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
@Jason3S
Copy link
Collaborator

Jason3S commented Dec 6, 2024

@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.

image

@mrfirmware
Copy link
Author

It's a markdown file. I've disabled show auto completions and no joy. Not a big deal.

@Jason3S
Copy link
Collaborator

Jason3S commented Dec 7, 2024

@mrfirmware,

This is what I am seeing:

backspace.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants