Commit 39faac4d authored by Stephan Binner's avatar Stephan Binner
Browse files

-// if (ev->state() & AltButton) sendString("\033")

+    if (ev->state() & AltButton) sendString("\033");
(Backport)

svn path=/branches/KDE_2_2_BRANCH/kdebase/konsole/; revision=137595
parent e144999a
......@@ -34,14 +34,12 @@
"key Tab -Shift : \"\\t\"\n"
"key Tab +Shift : \"\\E[Z\"\n"
"\n"
"key Return-Shift-Alt : \"\\r\"\n"
"key Return-Shift+Alt : \"\\E\\r\"\n"
"key Return+Shift : \"\\EOM\"\n"
"key Return-Shift : \"\\r\"\n"
"key Return+Shift : \"\\EOM\"\n"
"\n"
"# Backspace and Delete codes are preserving CTRL-H.\n"
"\n"
"key Backspace-Alt : \"\\x7f\"\n"
"key Backspace+Alt : \"\\E\\x7f\"\n"
"key Backspace : \"\\x7f\"\n"
"\n"
"# cursor keys\n"
"\n"
......
......@@ -32,14 +32,12 @@ key Escape : "\E"
key Tab -Shift : "\t"
key Tab +Shift : "\E[Z"
key Return-Shift-Alt : "\r"
key Return-Shift+Alt : "\E\r"
key Return+Shift : "\EOM"
key Return-Shift : "\r"
key Return+Shift : "\EOM"
# Backspace and Delete codes are preserving CTRL-H.
key Backspace-Alt : "\x7f"
key Backspace+Alt : "\E\x7f"
key Backspace : "\x7f"
# cursor keys
......
......@@ -52,16 +52,12 @@ key Tab : "\t"
# VT100 can add an extra \n after return.
# The NewLine mode is set by an escape sequence.
key Return-Alt-NewLine : "\r"
key Return-Alt+NewLine : "\r\n"
key Return+Alt-NewLine : "\E\r"
key Return+Alt+NewLine : "\E\r\n"
key Return-NewLine : "\r"
key Return+NewLine : "\r\n"
# Some desperately try to save the ^H.
key Backspace-Alt : "\x7f"
key Backspace+Alt : "\E\x7f"
key Backspace : "\x7f"
key Delete : "\E[3~"
# These codes are for the VT52 mode of VT100
......
......@@ -52,16 +52,12 @@ key Tab : "\t"
# VT100 can add an extra \n after return.
# The NewLine mode is set by an escape sequence.
key Return-Alt-NewLine : "\r"
key Return-Alt+NewLine : "\r\n"
key Return+Alt-NewLine : "\E\r"
key Return+Alt+NewLine : "\E\r\n"
key Return-NewLine : "\r"
key Return+NewLine : "\r\n"
# Some desperately try to save the ^H.
key Backspace-Alt : "\x7f"
key Backspace+Alt : "\E\x7f"
key Backspace : "\x7f"
key Delete : "\E[3~"
# These codes are for the VT52 mode of VT100
......
......@@ -71,17 +71,13 @@ key Tab : "\t"
# VT100 can add an extra \n after return.
# The NewLine mode is set by an escape sequence.
key Return-Alt-NewLine : "\r"
key Return-Alt+NewLine : "\r\n"
key Return+Alt-NewLine : "\E\r"
key Return+Alt+NewLine : "\E\r\n"
key Return-NewLine : "\r"
key Return+NewLine : "\r\n"
# Some desperately try to save the ^H.
# may be not everyone wants this
key Backspace-Alt : "\x08" # Control H
key Backspace+Alt : "\E\x08" # Escape Control H
key Backspace : "\x08" # Control H
key Delete : "\x7f"
# These codes are for the VT420pc
......
......@@ -15,13 +15,11 @@ keyboard "XTerm (XFree 3.x.x)"
key Escape : "\E"
key Tab : "\t"
key Return-Alt : "\r"
key Return+Alt : "\E\r"
key Return : "\r"
# Backspace and Delete codes are preserving CTRL-H.
key Backspace-Alt : "\x7f"
key Backspace+Alt : "\E\x7f"
key Backspace : "\x7f"
# cursor keys
......
......@@ -776,11 +776,9 @@ void TEmuVt102::onKeyPress( QKeyEvent* ev )
case CMD_scrollPageDown : gui->doScroll(+gui->Lines()/2); return;
case CMD_scrollLineUp : gui->doScroll(-1 ); return;
case CMD_scrollLineDown : gui->doScroll(+1 ); return;
case CMD_send :
emit sndBlock(txt,len); return;
// if (ev->state() & AltButton) sendString("\033");
// emit sndBlock(txt,len);
// return;
case CMD_send : if (ev->state() & AltButton) sendString("\033");
emit sndBlock(txt,len);
return;
case CMD_prevSession : emit prevSession(); return;
case CMD_nextSession : emit nextSession(); return;
case CMD_newSession : emit newSession(); return;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment