Skip to content

Commit

Permalink
Merge PR Yubico#1156.
Browse files Browse the repository at this point in the history
  • Loading branch information
dainnilsson committed Aug 24, 2023
2 parents 8effaeb + 10d81f5 commit b5b3773
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/app/shortcuts.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit b5b3773

Please sign in to comment.