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

Replace QuickOpenDialog navigation keys with actions #103476

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

Conversation

KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented Mar 2, 2025

Similar to #96400

@KoBeWi KoBeWi added this to the 4.x milestone Mar 2, 2025
@KoBeWi KoBeWi requested review from a team as code owners March 2, 2025 19:58
@KoBeWi KoBeWi force-pushed the more_action_for_quick_open._quick_action branch from f94af84 to 7ee808d Compare March 3, 2025 12:59
_move_selection_index(key_event->get_keycode());
queue_redraw();
accept_event();
Key move_selection = Key::NONE;
Copy link
Contributor

Choose a reason for hiding this comment

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

move_selection can be a bool here, like before, since there is not really any benefit to save the Key here, unless I miss something?

Copy link
Member Author

Choose a reason for hiding this comment

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

_move_selection_index() takes Key argument. It's simpler this way than rewriting its logic.

Copy link
Contributor

Choose a reason for hiding this comment

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

Sure, but should we replace key_event->get_keycode() with move_selection then?

Copy link
Member Author

Choose a reason for hiding this comment

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

I mean, the Key here is used as navigation enum, not actual key code. _move_selection_index() still somehow needs to decide what movement it should perform.

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.

2 participants