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

cmd+backspace does not work in editor text inputs #70793

Closed
doman412 opened this issue Jan 1, 2023 · 3 comments · Fixed by #88057
Closed

cmd+backspace does not work in editor text inputs #70793

doman412 opened this issue Jan 1, 2023 · 3 comments · Fixed by #88057

Comments

@doman412
Copy link

doman412 commented Jan 1, 2023

Godot version

v4.0.beta10.official [d0398f6]

System information

macOS 13.1 (22C65)

Issue description

cmd+backspace does not actually backspace all to the left as it does elsewhere in macOS and other applications. option+backspace works and backspaces a word as intended.

Steps to reproduce

backspace all to the left:

  • open Editor Settings
  • type hello into the Filter Settings input field
  • hit cmd+backspace - nothing happens

another strange sequence:

  • open Editor Settings
  • type hello into the Filter Settings input field
  • hit ctrl+b to move the cursor left one place (hell|o)
  • hit cmd+backspace - nothing happens
  • hit backspace - the last two characters are removed (hel)

Minimal reproduction project

should be reproducible with any Godot project on macOS

@EricEzaM
Copy link
Contributor

Here are Apples official shortcuts: https://support.apple.com/en-au/HT201236#:~:text=Option%2DDelete%3A%20Delete%20the%20word%20to%20the%20left%20of%20the%20insertion%20point.

Excerpt:

Option-Delete: Delete the word to the left of the insertion point.

There is no entry for command-delete. Are you using a non-mac keyboard on a Mac? Not sure how those keys map.

@doman412
Copy link
Author

Its a standard macbook keyboard, so yes I do mean 'delete' but colloquially its backspace as normally the delete key has a different connotation. Seems as if under the hood Godot treats backspace and delete as the same thing on macs as when I hit those keys in the shortcuts key listener I get whats in screenshot 1.

Screenshot 2023-01-29 at 12 33 05 PM

In the second screenshot, the command ui_text_backspace_all_to_left works as intended within the scripts editor but any input field within the Godot editor as a whole, it does not work. If i were to focus that input in screenshot 2 that has the value backspace with the cursor at the end and hit command+backspace it does nothing when it should clear the whole input left of the cursor.

Screenshot 2023-01-29 at 12 24 32 PM

@passivestar
Copy link
Contributor

Can confirm everything, command+backspace works in the script editor but not in any of the LineEdits, which is really annoying when searching for things in the FileSystem search, quick open, command palette, etc, because I'm used to command+backspace in every other application, but in godot I can only alt+backspace

using v4.2.1.stable.official [b09f793]

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

Successfully merging a pull request may close this issue.

5 participants