Add more shortcuts

Allow escape to cancel batch mode and ctrl+enter to also open batch mode
This commit is contained in:
heliguy
2023-09-01 02:45:18 -04:00
parent 7c59556709
commit 27b615b151
2 changed files with 11 additions and 11 deletions

View File

@@ -15,16 +15,6 @@ ShortcutsWindow help_overlay {
action-name: "app.search";
}
ShortcutsShortcut {
title: C_("shortcut window", "Show Shortcuts");
action-name: "win.show-help-overlay";
}
ShortcutsShortcut {
title: C_("shortcut window", "Quit");
action-name: "app.quit";
}
ShortcutsShortcut {
title: C_("shortcut window", "Toggle Batch Mode");
action-name: "app.toggle-batch-mode";
@@ -39,6 +29,16 @@ ShortcutsWindow help_overlay {
title: C_("shortcut window", "Select All Flatpaks");
action-name: "app.select-all-in-batch-mode";
}
ShortcutsShortcut {
title: C_("shortcut window", "Show Shortcuts");
action-name: "win.show-help-overlay";
}
ShortcutsShortcut {
title: C_("shortcut window", "Quit");
action-name: "app.quit";
}
}
}
}

View File

@@ -39,7 +39,7 @@ class FlattoolGuiApplication(Adw.Application):
self.create_action('preferences', self.on_preferences_action)
self.create_action('search', self.on_search_action, ['<primary>f'])
self.create_action('manage-data-folders', self.on_manage_data_folders_action)
self.create_action('toggle-batch-mode', self.batch_mode_shortcut, ['<primary>b'])
self.create_action('toggle-batch-mode', self.batch_mode_shortcut, ['<primary>b', '<primary>Return'])
self.create_action('select-all-in-batch-mode', self.select_all_shortcut, ['<primary>a'])
self.create_action('open-orphans-window', self.manage_data_shortcut, ['<primary>d'])