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 Ctrl+I/Cmd+I shortcut to trigger code completion #100606

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

adamscott
Copy link
Member

@adamscott adamscott commented Dec 19, 2024

When the user presses Ctrl+I/Cmd+I, the code completion popup appears.

Fixes godotengine/godot-proposals#11385

@adamscott adamscott added this to the 4.x milestone Dec 19, 2024
@adamscott adamscott requested a review from a team as a code owner December 19, 2024 14:00
@adamscott adamscott added enhancement cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release labels Dec 19, 2024
Comment on lines 518 to +519
inputs.push_back(InputEventKey::create_reference(Key::SPACE | KeyModifierMask::CTRL));
inputs.push_back(InputEventKey::create_reference(Key::I | KeyModifierMask::CMD_OR_CTRL));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

List the modifier first (it acts the same, but is more consistent with the rest of the codebase):

Suggested change
inputs.push_back(InputEventKey::create_reference(Key::SPACE | KeyModifierMask::CTRL));
inputs.push_back(InputEventKey::create_reference(Key::I | KeyModifierMask::CMD_OR_CTRL));
inputs.push_back(InputEventKey::create_reference(KeyModifierMask::CTRL | Key::SPACE));
inputs.push_back(InputEventKey::create_reference(KeyModifierMask::CMD_OR_CTRL | Key::I));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release enhancement topic:editor usability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Ctrl+I/`Cmd+I as an alternative shortcut for code completion
2 participants