Added: Add shift key support in extra keys and terminal with SHIFT or SHFT

Closes #1038
This commit is contained in:
agnostic-apollo
2021-08-23 08:51:30 +05:00
parent fbb91149b5
commit 9117240961
5 changed files with 19 additions and 1 deletions

View File

@@ -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;

View File

@@ -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