mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-06 10:45:23 +08:00
Fix Ctrl+/ to send same as Ctrl+_
This commit is contained in:
@@ -664,7 +664,9 @@ public final class TerminalView extends View {
|
|||||||
codePoint = 29;
|
codePoint = 29;
|
||||||
} else if (codePoint == '^' || codePoint == '6') {
|
} else if (codePoint == '^' || codePoint == '6') {
|
||||||
codePoint = 30; // control-^
|
codePoint = 30; // control-^
|
||||||
} else if (codePoint == '_' || codePoint == '7') {
|
} else if (codePoint == '_' || codePoint == '7' || codePoint == '/') {
|
||||||
|
// "Ctrl-/ sends 0x1f which is equivalent of Ctrl-_ since the days of VT102"
|
||||||
|
// - http://apple.stackexchange.com/questions/24261/how-do-i-send-c-that-is-control-slash-to-the-terminal
|
||||||
codePoint = 31;
|
codePoint = 31;
|
||||||
} else if (codePoint == '8') {
|
} else if (codePoint == '8') {
|
||||||
codePoint = 127; // DEL
|
codePoint = 127; // DEL
|
||||||
|
Reference in New Issue
Block a user