mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-21 12:13:20 +03:00
fix(terminal): ios delete (#14147)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
@@ -164,6 +164,13 @@ class _TerminalPageState extends State<TerminalPage>
|
|||||||
autofocus: true,
|
autofocus: true,
|
||||||
textStyle: _getTerminalStyle(),
|
textStyle: _getTerminalStyle(),
|
||||||
backgroundOpacity: 0.7,
|
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),
|
padding: _calculatePadding(heightPx),
|
||||||
onSecondaryTapDown: (details, offset) async {
|
onSecondaryTapDown: (details, offset) async {
|
||||||
final selection = _terminalModel.terminalController.selection;
|
final selection = _terminalModel.terminalController.selection;
|
||||||
|
|||||||
Reference in New Issue
Block a user