Open pgorley opened 2 months ago
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).
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".
Tested versions
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