mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-07 03:05:18 +08:00
Added: Add shift key support in extra keys and terminal with SHIFT
or SHFT
Closes #1038
This commit is contained in:
@@ -67,6 +67,12 @@ public class TermuxTerminalViewClientBase implements TerminalViewClient {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean readShiftKey() {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public boolean onCodePoint(int codePoint, boolean ctrlDown, TerminalSession session) {
|
||||
return false;
|
||||
|
@@ -173,6 +173,7 @@ public class ExtraKeysConstants {
|
||||
public static final ExtraKeyDisplayMap CONTROL_CHARS_ALIASES = new ExtraKeyDisplayMap() {{
|
||||
put("ESCAPE", "ESC");
|
||||
put("CONTROL", "CTRL");
|
||||
put("SHFT", "SHIFT");
|
||||
put("RETURN", "ENTER"); // Technically different keys, but most applications won't see the difference
|
||||
put("FUNCTION", "FN");
|
||||
// no alias for ALT
|
||||
|
Reference in New Issue
Block a user