forked from mirrors/rustdesk
fix(terminal): ios delete (#14147)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
parent
56a8f6b97b
commit
216ec9d52b
1 changed files with 7 additions and 0 deletions
|
|
@ -164,6 +164,13 @@ class _TerminalPageState extends State<TerminalPage>
|
|||
autofocus: true,
|
||||
textStyle: _getTerminalStyle(),
|
||||
backgroundOpacity: 0.7,
|
||||
// The following comment is from xterm.dart source code:
|
||||
// Workaround to detect delete key for platforms and IMEs that do not
|
||||
// emit a hardware delete event. Preferred on mobile platforms. [false] by
|
||||
// default.
|
||||
//
|
||||
// Android works fine without this workaround.
|
||||
deleteDetection: isIOS,
|
||||
padding: _calculatePadding(heightPx),
|
||||
onSecondaryTapDown: (details, offset) async {
|
||||
final selection = _terminalModel.terminalController.selection;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue