MCPcopy Create free account
hub / github.com/NetHack/NetHack / keyPressEvent

Method keyPressEvent

outdated/win/Qt3/qt3_win.cpp:2969–2982  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2967}
2968
2969void NetHackQtMenuWindow::keyPressEvent(QKeyEvent* event)
2970{
2971 if (viewHeight() < totalHeight() && !(event->state()&ShiftButton)) {
2972 if (event->key()==Key_Prior) {
2973 setYOffset(yOffset()-viewHeight());
2974 } else if (event->key()==Key_Next) {
2975 setYOffset(yOffset()+viewHeight());
2976 } else {
2977 event->ignore();
2978 }
2979 } else {
2980 event->ignore();
2981 }
2982}
2983
2984void NetHackQtMenuWindow::All()
2985{

Callers

nothing calls this directly

Calls 2

ScrollMethod · 0.45
clickCursorMethod · 0.45

Tested by

no test coverage detected