(ctx: &Context)
| 66 | } |
| 67 | |
| 68 | pub 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 | |
| 77 | pub fn consume_down_key(ctx: &Context) -> bool { |
| 78 | if any_widget_focused(ctx) { |
no test coverage detected