mirror of
https://github.com/morgan9e/warehouse
synced 2026-04-14 00:04:08 +09:00
Remove 'select all' keyboard shortcut
This commit is contained in:
@@ -5,7 +5,7 @@ ShortcutsWindow help_overlay {
|
||||
|
||||
ShortcutsSection {
|
||||
section-name: "shortcuts";
|
||||
max-height: 8;
|
||||
// max-height: 8;
|
||||
|
||||
ShortcutsGroup {
|
||||
title: C_("shortcut window", "App Management");
|
||||
@@ -29,11 +29,6 @@ ShortcutsWindow help_overlay {
|
||||
title: C_("shortcut window", "Toggle Selection Mode");
|
||||
action-name: "app.toggle-batch-mode";
|
||||
}
|
||||
|
||||
ShortcutsShortcut {
|
||||
title: C_("shortcut window", "Select All Apps");
|
||||
action-name: "app.select-all-in-batch-mode";
|
||||
}
|
||||
}
|
||||
ShortcutsGroup {
|
||||
title: C_("shortcut window", "More Functions");
|
||||
|
||||
@@ -44,7 +44,6 @@ class WarehouseApplication(Adw.Application):
|
||||
self.create_action("search", self.on_search_action, ["<primary>f"])
|
||||
self.create_action("manage-data-folders", self.manage_data_shortcut)
|
||||
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("manage-data-folders", self.manage_data_shortcut, ["<primary>d"])
|
||||
self.create_action("refresh-list", self.refresh_list_shortcut, ["<primary>r", "F5"])
|
||||
self.create_action("show-remotes-window", self.show_remotes_shortcut, ["<primary>m"])
|
||||
@@ -56,13 +55,6 @@ class WarehouseApplication(Adw.Application):
|
||||
button = self.props.active_window.batch_mode_button
|
||||
button.set_active(not button.get_active())
|
||||
|
||||
def select_all_shortcut(self, widget, _):
|
||||
batch_button = self.props.active_window.batch_mode_button
|
||||
batch_button.set_active(True)
|
||||
select_button = self.props.active_window.batch_select_all_button
|
||||
select_button.set_active(not select_button.get_active())
|
||||
self.props.active_window.batchSelectAllHandler(select_button)
|
||||
|
||||
def manage_data_shortcut(self, widget, _):
|
||||
OrphansWindow(self.props.active_window).present()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user