| 48 | } |
| 49 | |
| 50 | bool CharSelectionPane::sendEvent(InputEvent const& event) { |
| 51 | if (m_visible) { |
| 52 | if (auto mouseWheel = event.ptr<MouseWheelEvent>()) { |
| 53 | if (inMember(*context()->mousePosition(event))) { |
| 54 | if (mouseWheel->mouseWheel == MouseWheel::Down) |
| 55 | shiftCharacters(1); |
| 56 | else if (mouseWheel->mouseWheel == MouseWheel::Up) |
| 57 | shiftCharacters(-1); |
| 58 | return true; |
| 59 | } |
| 60 | } |
| 61 | } |
| 62 | return Pane::sendEvent(event); |
| 63 | } |
| 64 | |
| 65 | void CharSelectionPane::show() { |
| 66 | Pane::show(); |
nothing calls this directly
no test coverage detected