(ctx: &Context)
| 34 | } |
| 35 | |
| 36 | pub fn down_pressed(ctx: &Context) -> bool { |
| 37 | if any_widget_focused(ctx) { |
| 38 | return false; |
| 39 | } |
| 40 | ctx.input_mut(|i| i.key_pressed(Key::ArrowDown) || i.key_pressed(Key::S)) |
| 41 | } |
| 42 | |
| 43 | pub fn page_up_pressed(ctx: &Context) -> bool { ctx.input_mut(|i| i.key_pressed(Key::PageUp)) } |
| 44 |
no test coverage detected