Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
5
fn any_widget_focused(ctx: &Context) -> bool { ctx.memory(|mem| mem.focused().is_some()) }
6
7
pub fn enter_pressed(ctx: &Context) -> bool {
8
if any_widget_focused(ctx) {
Callers
6
enter_pressed
Function · 0.85
back_pressed
Function · 0.85
up_pressed
Function · 0.85
down_pressed
Function · 0.85
consume_up_key
Function · 0.85
consume_down_key
Function · 0.85
Calls
1
is_some
Method · 0.80
Tested by
no test coverage detected