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

"Home" and "End" keys do not work in the editor in MacOS #90826

Open
pgorley opened this issue Apr 18, 2024 · 2 comments
Open

"Home" and "End" keys do not work in the editor in MacOS #90826

pgorley opened this issue Apr 18, 2024 · 2 comments

Comments

@pgorley
Copy link

pgorley commented Apr 18, 2024

Tested versions

  • Reproducible in 3.x/4.x

System information

Godot v4.2.1.stable.mono - macOS 14.4.1 - Vulkan (Forward+) - integrated Apple M1 Pro - Apple M1 Pro (8 Threads)

Issue description

The godot editor does not support "Home" and "End" keypresses for macOS. When pressed, nothing happens.

Steps to reproduce

Create a new gdscript file. Add some text to a line.

Press "Home" key.
Expected: cursor moves to the first character in the line
Actual: nothing happens

Move cursor to the first character in the line. Press "End" key.
Expected: cursor moves to the last character in the line
Actual: nothing happens

Minimal reproduction project (MRP)

4.2.1_MRP_Home_End_key.zip

@bruvzg
Copy link
Member

bruvzg commented Apr 18, 2024

Standard shortcuts for this on macOS are Ctrl+A/E and Command+Arrows. You can remap it on the editor settings (ui_text_caret_line_* shortcuts).

@ewrogers
Copy link

ewrogers commented Jun 6, 2024

It is still a bit strange that the HOME and END keys have no functionality at all out of the box. Whether it should go to the start/end of the line or the start/end of the script file itself.

The PGUP and PGDN keys work by scrolling through the script without requiring additional bindings. It is certainly unexpected that HOME and END do nothing at all.

In any editor on macOS these have some functionality, including the terminal. It does seem like a bug to tell someone "add bindings to a key with typical, expected behavior because we bound it to something else".

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

No branches or pull requests

4 participants