Open the on-screen keyboard for terminals on phones
On Android and iOS a tap on a terminal (a chat command card or the terminal panel) now opens the soft keyboard and typing goes to the process, with no autocorrect. Desktop keeps raw key events. Desktop keyboard tests now run as macOS, since tests default to Android.
This commit is contained in:
@@ -117,10 +117,13 @@ class _ChatShellTerminalViewState extends State<ChatShellTerminalView> {
|
||||
textStyle: style,
|
||||
padding: padding,
|
||||
readOnly: !live,
|
||||
// Keys go straight to the process as key events (a focused text
|
||||
// input would stay closed on the web); touch typing goes through the
|
||||
// key toolbar's field instead.
|
||||
hardwareKeyboardOnly: true,
|
||||
// Desktop keys go straight to the process as key events (a focused
|
||||
// text input stays closed in desktop browsers). On phones and tablets
|
||||
// a tap opens the on-screen keyboard and typing goes to the terminal;
|
||||
// the key toolbar's field stays as an alternative.
|
||||
hardwareKeyboardOnly: !chatShellTouchFirst(),
|
||||
// No autocorrect or suggestions rewriting what is sent to a shell.
|
||||
keyboardType: TextInputType.visiblePassword,
|
||||
shortcuts: chatShellTerminalShortcuts(),
|
||||
cursorType: TerminalCursorType.block,
|
||||
onTapUp: _tapped,
|
||||
|
||||
Reference in New Issue
Block a user