mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
ssh: support copy/paste, fix ios backspace
This commit is contained in:
@@ -2,14 +2,14 @@ import 'package:flutter/material.dart';
|
||||
import 'package:xterm/core.dart';
|
||||
|
||||
class VirtualKey {
|
||||
final TerminalKey key;
|
||||
final String text;
|
||||
final bool toggleable;
|
||||
final TerminalKey? key;
|
||||
final IconData? icon;
|
||||
final VirtualKeyType? extFunc;
|
||||
final VirtualKeyFunc? func;
|
||||
|
||||
VirtualKey(this.key, this.text,
|
||||
{this.toggleable = false, this.icon, this.extFunc});
|
||||
VirtualKey(this.text,
|
||||
{this.key, this.toggleable = false, this.icon, this.func});
|
||||
}
|
||||
|
||||
enum VirtualKeyType { toggleIME, backspace }
|
||||
enum VirtualKeyFunc { toggleIME, backspace, copy, paste }
|
||||
|
||||
Reference in New Issue
Block a user