Some of us have a meta key that is more easily reachable than alt. (This is particularly common among Emacs users, but those of us with strange ergonomic keyboards are in this situation too.) --- konsole/konsole/TEmuVt102.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/konsole/konsole/TEmuVt102.cpp b/konsole/konsole/TEmuVt102.cpp index 76772ab..afdefbe 100644 --- a/konsole/konsole/TEmuVt102.cpp +++ b/konsole/konsole/TEmuVt102.cpp @@ -945,7 +945,8 @@ void TEmuVt102::onKeyPress( TQKeyEvent* ev ) encodeMode(MODE_AppScreen , BITS_AppScreen ) + // VT100 stuff encodeStat(TQt::ControlButton , BITS_Control ) + encodeStat(TQt::ShiftButton , BITS_Shift ) + - encodeStat(TQt::AltButton , BITS_Alt ), + encodeStat(TQt::AltButton , BITS_Alt ) + + encodeStat(TQt::MetaButton , BITS_Alt ), &cmd, &txt, &len, &metaspecified )) //printf("cmd: %d, %s, %d\n",cmd,txt,len); if (connected) @@ -977,7 +978,7 @@ void TEmuVt102::onKeyPress( TQKeyEvent* ev ) scr->setHistCursor(scr->getHistLines());
if (cmd==CMD_send) { - if ((ev->state() & TQt::AltButton) && !metaspecified ) sendString("\033"); + if (((ev->state() & TQt::AltButton) || (ev->state() & TQt::MetaButton)) && !metaspecified ) sendString("\033"); emit sndBlock(txt,len); return; }