^X on MacOSX Qt
Add Michael's fix for control+x. The enum name of the argument suggests that option+x should have been sending control characters but that wasn't the case for me. Before this fix, both control+x and option+x behaved like dead keys, not transmitting anything for nethack to use. After this fix, control+x sends ^X as desired but option+x is still dead.
This commit is contained in:
@@ -520,6 +520,11 @@ NetHackQtMainWindow::NetHackQtMainWindow(NetHackQtKeyBuffer& ks) :
|
||||
QCoreApplication::setOrganizationName("The NetHack DevTeam");
|
||||
QCoreApplication::setOrganizationDomain("nethack.org");
|
||||
QCoreApplication::setApplicationName("NetHack");
|
||||
#ifdef MACOSX
|
||||
/* without this, neither control+x nor option+x do anything;
|
||||
with it, control+x is ^X and option+x still does nothing */
|
||||
QCoreApplication::setAttribute(Qt::AA_MacDontSwapCtrlAndMeta);
|
||||
#endif
|
||||
|
||||
setWindowTitle("Qt NetHack");
|
||||
if ( qt_compact_mode )
|
||||
|
||||
Reference in New Issue
Block a user