godot-xterm icon indicating copy to clipboard operation
godot-xterm copied to clipboard

[Godot 4] Fix editor terminal shortcuts

Open lihop opened this issue 2 years ago • 0 comments

Default shortcuts:

  • Copy: Ctrl+Shift+C
  • Paste: Ctrl+Shift+P
  • Kill focused terminal: Ctrl+Shift+X
  • Open new terminal: Ctrl+Shift+T
  • Tab left: Ctrl+Shift+PgUp
  • Tab right: Ctrl+Shift+PgDown

All of these use the Shift modifier as to not conflict with control character input. For example, Ctrl+C is used to write the "end of text" control character.

These shortcuts should also be shown (in brackets) in the "right-click" popup menu:

2023-01-15-105027_281x235_scrot

As a bonus, these shortcuts should be configurable in editor settings (see #64). Shortcut settings are not currently exposed by the engine, but it looks like there are plans to expose them in the future. In the meantime, we could use string representations of the shortcuts and parse them using OS.find_keycode_from_string().

lihop avatar Jan 14 '23 21:01 lihop