diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2014-05-14 22:06:08 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2014-05-14 22:06:08 +0900 |
commit | 83708272fbd48b9a65342cc66af5c0a3837d7a13 (patch) | |
tree | 17714d07c7f88efb2d406bcd8850ee8b9a23750d /konsole/konsole/TEmulation.h | |
parent | 335d526a0044373592b307d91f52c9f1c2d42980 (diff) | |
download | tdebase-83708272fbd48b9a65342cc66af5c0a3837d7a13.tar.gz tdebase-83708272fbd48b9a65342cc66af5c0a3837d7a13.zip |
Workaround Qt/Tde/X? bug for handling Meta key as Alt key in terminal emulation
after restored sessions. This resolves bug 1026 for good.
Diffstat (limited to 'konsole/konsole/TEmulation.h')
-rw-r--r-- | konsole/konsole/TEmulation.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/konsole/konsole/TEmulation.h b/konsole/konsole/TEmulation.h index 6eac5f91b..b50afc608 100644 --- a/konsole/konsole/TEmulation.h +++ b/konsole/konsole/TEmulation.h @@ -55,7 +55,12 @@ public slots: // signals incoming from TEWidget virtual void onImageSizeChange(int lines, int columns); virtual void onHistoryCursorChange(int cursor); - virtual void onKeyPress(TQKeyEvent*); + + // HACK + void onKeyPress(TQKeyEvent*); // This should not be overwritten by derived classes + virtual void doKeyPress(TQKeyEvent*); // Instead this function should be overwritten if necessary + void onKeyReleased(TQKeyEvent*); // This should not be overwritten by derived classes + virtual void doKeyReleased(TQKeyEvent*); // Instead this function should be overwritten if necessary virtual void clearSelection(); virtual void copySelection(); @@ -121,6 +126,7 @@ protected: bool connected; // communicate with widget bool listenToKeyPress; // listen to input bool metaKeyMode; // true -> meta key is handled as Alt + bool metaIsPressed; // true -> the meta key has been pressed down - HACK void setCodec(int c); // codec number, 0 = locale, 1=utf8 |