From 5bf430c3d39090339db5a1566cc6e910e25dde60 Mon Sep 17 00:00:00 2001 From: warwick Date: Wed, 16 Jan 2002 03:09:12 +0000 Subject: [PATCH] Ignore Alt-key navigation to menubar, as it's annoying when you use Alt-Direction to move around. --- win/Qt/qt_win.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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;