mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-26 22:03:55 +03:00
Improve keyboard shortcuts:
- Remove CTRL+W on Linux - Add support for Copy key for copying Oath codes, etc.
This commit is contained in:
parent
1f4428b6a7
commit
10d81f511f
@ -149,18 +149,24 @@ Widget registerGlobalShortcuts(
|
||||
child: Shortcuts(
|
||||
shortcuts: {
|
||||
ctrlOrCmd(LogicalKeyboardKey.keyC): const CopyIntent(),
|
||||
ctrlOrCmd(LogicalKeyboardKey.keyW): const HideIntent(),
|
||||
const SingleActivator(LogicalKeyboardKey.copy): const CopyIntent(),
|
||||
ctrlOrCmd(LogicalKeyboardKey.keyF): const SearchIntent(),
|
||||
if (isDesktop) ...{
|
||||
const SingleActivator(LogicalKeyboardKey.tab, control: true):
|
||||
const NextDeviceIntent(),
|
||||
},
|
||||
if (Platform.isMacOS) ...{
|
||||
const SingleActivator(LogicalKeyboardKey.keyW, meta: true):
|
||||
const HideIntent(),
|
||||
const SingleActivator(LogicalKeyboardKey.keyQ, meta: true):
|
||||
const CloseIntent(),
|
||||
const SingleActivator(LogicalKeyboardKey.comma, meta: true):
|
||||
const SettingsIntent(),
|
||||
},
|
||||
if (Platform.isWindows) ...{
|
||||
const SingleActivator(LogicalKeyboardKey.keyW, control: true):
|
||||
const HideIntent(),
|
||||
},
|
||||
if (Platform.isLinux) ...{
|
||||
const SingleActivator(LogicalKeyboardKey.keyQ, control: true):
|
||||
const CloseIntent(),
|
||||
|
Loading…
Reference in New Issue
Block a user