1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-01 16:38:31 +00:00

Add Ctrl + A and Ctrl + Shift + A to (de)select all projects in project manager

These keyboard shortcuts are commonly used in applications to (de)select
all entries in a list.
This commit is contained in:
Hugo Locurcio
2024-10-17 17:36:00 +02:00
parent e6aa06d3de
commit 226d726b05
3 changed files with 28 additions and 0 deletions

View File

@@ -1238,6 +1238,16 @@ void ProjectManager::shortcut_input(const Ref<InputEvent> &p_ev) {
keycode_handled = false;
}
} break;
case Key::A: {
if (k->is_command_or_control_pressed()) {
if (k->is_shift_pressed()) {
project_list->deselect_all_visible_projects();
} else {
project_list->select_all_visible_projects();
}
_update_project_buttons();
}
} break;
default: {
keycode_handled = false;
} break;