MCPcopy Index your code
hub / github.com/encounter/objdiff / consume_down_key

Function consume_down_key

objdiff-gui/src/hotkeys.rs:77–84  ·  view source on GitHub ↗
(ctx: &Context)

Source from the content-addressed store, hash-verified

75}
76
77pub fn consume_down_key(ctx: &Context) -> bool {
78 if any_widget_focused(ctx) {
79 return false;
80 }
81 ctx.input_mut(|i| {
82 i.consume_key(Modifiers::NONE, Key::ArrowDown) || i.consume_key(Modifiers::NONE, Key::S)
83 })
84}
85
86const OBJECT_FILTER_SHORTCUT: KeyboardShortcut = KeyboardShortcut::new(Modifiers::CTRL, Key::F);
87

Callers 2

check_scroll_hotkeysFunction · 0.85
symbol_list_uiFunction · 0.85

Calls 1

any_widget_focusedFunction · 0.85

Tested by

no test coverage detected