Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add keyboard shortcuts to the project manager #47894

Merged

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Apr 14, 2021

  • Ctrl + N: New Project

  • Ctrl + I: Import Project

  • Ctrl + S: Scan for Projects

  • Ctrl + E: Edit Project

  • Ctrl + R: Run Project

  • F2: Rename Project

  • Delete: Remove Project

    • Already implemented previously, but moved to use ED_SHORTCUT().

Ctrl + F to focus on the search box is already implemented.

Note that depsite using ED_SHORTCUT(), these shortcuts won't appear in the Editor Settings' Shortcuts dialog and won't be remappable since the project manager code isn't run in the editor.

This closes godotengine/godot-proposals#532.

- Ctrl + N: New Project
- Ctrl + I: Import Project
- Ctrl + S: Scan for Projects
- Ctrl + E: Edit Project
- Ctrl + R: Run Project
- F2: Rename Project
- Delete: Remove Project
  - Already implemented previously, but moved to use `ED_SHORTCUT()`.

Note that depsite using `ED_SHORTCUT()`, these shortcuts won't appear
in the Editor Settings' Shortcuts dialog and won't be remappable since
the project manager code isn't run in the editor.
@Calinou Calinou added cherrypick:3.x Considered for cherry-picking into a future 3.x release enhancement topic:editor usability labels Apr 14, 2021
@Calinou Calinou added this to the 4.0 milestone Apr 14, 2021
@KoBeWi
Copy link
Member

KoBeWi commented Apr 15, 2021

Ctrl + E: Edit Project

But Enter already does that.

@Calinou
Copy link
Member Author

Calinou commented Apr 15, 2021

Ctrl + E: Edit Project

But Enter already does that.

I know, but I guess it doesn't hurt to have Ctrl + E as well since the button is Edit.

@rick551a
Copy link

Could 'Home' for scroll to top & 'end' to scroll to the bottom of the project list be added?

@Calinou
Copy link
Member Author

Calinou commented Apr 15, 2021

Could 'Home' for scroll to top & 'end' to scroll to the bottom of the project list be added?

This is already implemented:

case KEY_HOME: {
if (_project_list->get_project_count() > 0) {
_project_list->select_project(0);
_update_project_buttons();
}
} break;
case KEY_END: {
if (_project_list->get_project_count() > 0) {
_project_list->select_project(_project_list->get_project_count() - 1);
_update_project_buttons();
}

It works only when the project list is focused though. If it doesn't work, please create an issue.

@akien-mga akien-mga merged commit 82eb4cf into godotengine:master Jun 17, 2021
@akien-mga
Copy link
Member

Thanks!

@akien-mga
Copy link
Member

Cherry-picked for 3.4.

@akien-mga akien-mga removed the cherrypick:3.x Considered for cherry-picking into a future 3.x release label Jun 29, 2021
@MaaaxiKing
Copy link

Neither KEY_HOME nor KEY_END makes the container scroll to the project's button but that would be helpful!

@Calinou Calinou deleted the project-manager-add-keyboard-shortcuts branch August 3, 2021 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add keyboard shortcuts in the Project Manager
5 participants