Qt key handling

Fix the popup versions of qt_yn_function() to handle control
characters by using the same key press event decoding routine
and menus and extended commands.  Moves 'keyValue()' to
qt_key.cpp and its declaration to qt_key.h, requring several
files to start using #include "qt_key.h".

'make depend' update to follow.
This commit is contained in:
PatR
2021-01-08 13:47:34 -08:00
parent 129ff12245
commit 2c02d5daac
6 changed files with 47 additions and 30 deletions
-2
View File
@@ -15,8 +15,6 @@
namespace nethack_qt_ {
extern uchar keyValue(QKeyEvent *key_event); // also used in qt_xcmd.cpp
class NetHackQtTextListBox : public QListWidget {
public:
NetHackQtTextListBox(QWidget* parent = NULL) : QListWidget(parent) { }