mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 19:45:12 +00:00
LibLine: Treat DEL as backspace by default
This can come in handy when telneting in.
This commit is contained in:
parent
745b0800be
commit
5a0ebdb109
Notes:
sideshowbarker
2024-07-18 21:24:43 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/5a0ebdb1096 Pull-request: https://github.com/SerenityOS/serenity/pull/5756 Issue: https://github.com/SerenityOS/serenity/issues/5752
1 changed files with 2 additions and 0 deletions
|
@ -159,6 +159,8 @@ void Editor::set_default_keybinds()
|
|||
register_key_input_callback(ctrl('F'), EDITOR_INTERNAL_FUNCTION(cursor_right_character));
|
||||
// ^H: ctrl('H') == '\b'
|
||||
register_key_input_callback(ctrl('H'), EDITOR_INTERNAL_FUNCTION(erase_character_backwards));
|
||||
// DEL - Some terminals send this instead of ^H.
|
||||
register_key_input_callback((char)127, EDITOR_INTERNAL_FUNCTION(erase_character_backwards));
|
||||
register_key_input_callback(m_termios.c_cc[VERASE], EDITOR_INTERNAL_FUNCTION(erase_character_backwards));
|
||||
register_key_input_callback(ctrl('K'), EDITOR_INTERNAL_FUNCTION(erase_to_end));
|
||||
register_key_input_callback(ctrl('L'), EDITOR_INTERNAL_FUNCTION(clear_screen));
|
||||
|
|
Loading…
Add table
Reference in a new issue