From: warwick Date: Wed, 16 Jan 2002 03:09:12 +0000 (+0000) Subject: Ignore Alt-key navigation to menubar, as it's annoying when you X-Git-Tag: MOVE2GIT~3471 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5bf430c3d39090339db5a1566cc6e910e25dde60;p=nethack Ignore Alt-key navigation to menubar, as it's annoying when you use Alt-Direction to move around. --- diff --git a/win/Qt/qt_win.cpp b/win/Qt/qt_win.cpp index fbdd9c42a..8105f6cdc 100644 --- a/win/Qt/qt_win.cpp +++ b/win/Qt/qt_win.cpp @@ -4981,6 +4981,11 @@ void NetHackQtBind::qt_outrip(winid wid, int how) bool NetHackQtBind::notify(QObject *receiver, QEvent *event) { + // Ignore Alt-key navigation to menubar, it's annoying when you + // use Alt-Direction to move around. + if ( main && event->type()==QEvent::KeyRelease && main==receiver ) + return TRUE; + bool result=QApplication::notify(receiver,event); if (event->type()==QEvent::KeyPress) { QKeyEvent* key_event=(QKeyEvent*)event;