mirror of
https://github.com/nix-community/nix-on-droid-app.git
synced 2025-12-08 10:01:12 +01:00
Make TerminalView agnostic of "termux.properties" files.
`TerminalView` will use the `TerminalViewClient` interface implemented by `TermuxViewClient` in termux-app to get "enforce-char-based-input" and "ctrl-space-workaround" property values. It will also not read the file every time it needs to get the property value and will get it from the in-memory cache of `TermuxSharedProperties`.
This commit is contained in:
parent
319446fc15
commit
10d6eaa5d1
5 changed files with 40 additions and 45 deletions
|
|
@ -25,6 +25,10 @@ public interface TerminalViewClient {
|
|||
|
||||
boolean shouldBackButtonBeMappedToEscape();
|
||||
|
||||
boolean shouldEnforeCharBasedInput();
|
||||
|
||||
boolean shouldUseCtrlSpaceWorkaround();
|
||||
|
||||
void copyModeChanged(boolean copyMode);
|
||||
|
||||
boolean onKeyDown(int keyCode, KeyEvent e, TerminalSession session);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue