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

Function any_widget_focused

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

Source from the content-addressed store, hash-verified

3};
4
5fn any_widget_focused(ctx: &Context) -> bool { ctx.memory(|mem| mem.focused().is_some()) }
6
7pub fn enter_pressed(ctx: &Context) -> bool {
8 if any_widget_focused(ctx) {

Callers 6

enter_pressedFunction · 0.85
back_pressedFunction · 0.85
up_pressedFunction · 0.85
down_pressedFunction · 0.85
consume_up_keyFunction · 0.85
consume_down_keyFunction · 0.85

Calls 1

is_someMethod · 0.80

Tested by

no test coverage detected