mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-06 10:45:23 +08:00
Fix backspace in combination with Alt and Ctrl
This commit is contained in:
@@ -225,8 +225,9 @@ public final class KeyHandler {
|
|||||||
case KEYCODE_PAGE_DOWN:
|
case KEYCODE_PAGE_DOWN:
|
||||||
return "\033[6~";
|
return "\033[6~";
|
||||||
case KEYCODE_DEL:
|
case KEYCODE_DEL:
|
||||||
// Yes, this needs to U+007F and not U+0008!
|
String prefix = ((keyMode & KEYMOD_ALT) == 0) ? "" : "\033";
|
||||||
return "\u007F";
|
// Just do what xterm and gnome-terminal does:
|
||||||
|
return prefix + (((keyMode & KEYMOD_CTRL) == 0) ? "\u007F" : "\u0008");
|
||||||
case KEYCODE_NUM_LOCK:
|
case KEYCODE_NUM_LOCK:
|
||||||
return "\033OP";
|
return "\033OP";
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user