|
|
@@ -1,7 +1,6 @@
|
|
|
import 'package:flutter/foundation.dart';
|
|
|
import 'package:flutter/services.dart';
|
|
|
import 'package:flutter/widgets.dart';
|
|
|
-import 'package:xterm/src/ui/shortcut/intents.dart';
|
|
|
|
|
|
Map<ShortcutActivator, Intent> get defaultTerminalShortcuts {
|
|
|
switch (defaultTargetPlatform) {
|
|
|
@@ -18,18 +17,18 @@ Map<ShortcutActivator, Intent> get defaultTerminalShortcuts {
|
|
|
|
|
|
final _defaultShortcuts = {
|
|
|
SingleActivator(LogicalKeyboardKey.keyC, control: true):
|
|
|
- const TerminalCopyIntent(),
|
|
|
+ CopySelectionTextIntent.copy,
|
|
|
SingleActivator(LogicalKeyboardKey.keyV, control: true):
|
|
|
- const TerminalPasteIntent(),
|
|
|
+ const PasteTextIntent(SelectionChangedCause.keyboard),
|
|
|
SingleActivator(LogicalKeyboardKey.keyA, control: true):
|
|
|
- const TerminalSelectAllIntent(),
|
|
|
+ const SelectAllTextIntent(SelectionChangedCause.keyboard),
|
|
|
};
|
|
|
|
|
|
final _defaultAppleShortcuts = {
|
|
|
SingleActivator(LogicalKeyboardKey.keyC, meta: true):
|
|
|
- const TerminalCopyIntent(),
|
|
|
+ CopySelectionTextIntent.copy,
|
|
|
SingleActivator(LogicalKeyboardKey.keyV, meta: true):
|
|
|
- const TerminalPasteIntent(),
|
|
|
+ const PasteTextIntent(SelectionChangedCause.keyboard),
|
|
|
SingleActivator(LogicalKeyboardKey.keyA, meta: true):
|
|
|
- const TerminalSelectAllIntent(),
|
|
|
+ const SelectAllTextIntent(SelectionChangedCause.keyboard),
|
|
|
};
|