Prefer later bindings in keymap section for display in UI (#23378)
Closes #23015 Release Notes: - Improved which keybindings are selected for display. Now later entries within `bindings` will take precedence. The default keymaps have been updated accordingly.
This commit is contained in:
parent
919703e6a8
commit
aacd80ee4a
11 changed files with 186 additions and 196 deletions
|
@ -67,7 +67,8 @@ impl Keymap {
|
|||
self.bindings.iter()
|
||||
}
|
||||
|
||||
/// Iterate over all bindings for the given action, in the order they were added.
|
||||
/// Iterate over all bindings for the given action, in the order they were added. For display,
|
||||
/// the last binding should take precedence.
|
||||
pub fn bindings_for_action<'a>(
|
||||
&'a self,
|
||||
action: &'a dyn Action,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue