(ctx: &Context)
| 27 | } |
| 28 | |
| 29 | pub fn up_pressed(ctx: &Context) -> bool { |
| 30 | if any_widget_focused(ctx) { |
| 31 | return false; |
| 32 | } |
| 33 | ctx.input_mut(|i| i.key_pressed(Key::ArrowUp) || i.key_pressed(Key::W)) |
| 34 | } |
| 35 | |
| 36 | pub fn down_pressed(ctx: &Context) -> bool { |
| 37 | if any_widget_focused(ctx) { |
no test coverage detected