raysan5 / raygui

A simple and easy-to-use immediate-mode gui library
zlib License
3.36k stars 289 forks source link

Proposal: Add standard emacs/bash keybindings to GuiTextBox #347

Closed VisenDev closed 10 months ago

VisenDev commented 10 months ago

The following bash/emacs keybindings would be useful for text input. These bindings seem to be nearly universal across text input implementations. Beyond bash and emacs, I know they are also available in github, and in most webbrowsers

<C-a>     goto beginning of line
<C-e>     goto end of line
<C-k>     kill from cursor to end of line
<C-f>      go forward one character
<C-b>     go backward one character
raysan5 commented 10 months ago

I'm afraid this is out of scope for GuiTextBox(). In any case, the most common Home-End would be added.

VisenDev commented 10 months ago

I'm afraid this is out of scope for GuiTextBox(). In any case, the most common Home-End would be added.

I'd like to have this functionality for a simple terminal interface I'm working on using raygui, would you recommend I use a different widget for this functionality, or implement my own custom input box?