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

Function consume_up_key

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

Source from the content-addressed store, hash-verified

66}
67
68pub fn consume_up_key(ctx: &Context) -> bool {
69 if any_widget_focused(ctx) {
70 return false;
71 }
72 ctx.input_mut(|i| {
73 i.consume_key(Modifiers::NONE, Key::ArrowUp) || i.consume_key(Modifiers::NONE, Key::W)
74 })
75}
76
77pub fn consume_down_key(ctx: &Context) -> bool {
78 if any_widget_focused(ctx) {

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