-rw-r--r-- | core/apps/embeddedkonsole/TEWidget.cpp | 8 | ||||
-rw-r--r-- | core/apps/embeddedkonsole/konsole.cpp | 3 |
2 files changed, 8 insertions, 3 deletions
diff --git a/core/apps/embeddedkonsole/TEWidget.cpp b/core/apps/embeddedkonsole/TEWidget.cpp index dab0ea3..350ab3a 100644 --- a/core/apps/embeddedkonsole/TEWidget.cpp +++ b/core/apps/embeddedkonsole/TEWidget.cpp | |||
@@ -990,7 +990,7 @@ bool TEWidget::eventFilter( QObject *obj, QEvent *e ) | |||
990 | #ifdef FAKE_CTRL_AND_ALT | 990 | #ifdef FAKE_CTRL_AND_ALT |
991 | static bool control = FALSE; | 991 | static bool control = FALSE; |
992 | static bool alt = FALSE; | 992 | static bool alt = FALSE; |
993 | // Has a keyboard with no CTRL and ALT keys, but we fake it: | 993 | qDebug(" Has a keyboard with no CTRL and ALT keys, but we fake it:"); |
994 | bool dele=FALSE; | 994 | bool dele=FALSE; |
995 | if ( e->type() == QEvent::KeyPress || e->type() == QEvent::KeyRelease ) { | 995 | if ( e->type() == QEvent::KeyPress || e->type() == QEvent::KeyRelease ) { |
996 | QKeyEvent* ke = (QKeyEvent*)e; | 996 | QKeyEvent* ke = (QKeyEvent*)e; |
@@ -1027,10 +1027,14 @@ bool TEWidget::eventFilter( QObject *obj, QEvent *e ) | |||
1027 | if ( e->type() == QEvent::KeyPress ) | 1027 | if ( e->type() == QEvent::KeyPress ) |
1028 | { | 1028 | { |
1029 | QKeyEvent* ke = (QKeyEvent*)e; | 1029 | QKeyEvent* ke = (QKeyEvent*)e; |
1030 | |||
1031 | actSel=0; // Key stroke implies a screen update, so TEWidget won't | 1030 | actSel=0; // Key stroke implies a screen update, so TEWidget won't |
1032 | // know where the current selection is. | 1031 | // know where the current selection is. |
1033 | 1032 | ||
1033 | // qDebug("key pressed is 0x%x",ke->key()); | ||
1034 | if( ke->state() == ShiftButton && ke->key() == Key_Tab) { //lets hardcode this sucker | ||
1035 | // qDebug("key pressed 2 is 0x%x",ke->key()); | ||
1036 | emitText("\\"); // expose | ||
1037 | } else | ||
1034 | emit keyPressedSignal(ke); // expose | 1038 | emit keyPressedSignal(ke); // expose |
1035 | ke->accept(); | 1039 | ke->accept(); |
1036 | #ifdef FAKE_CTRL_AND_ALT | 1040 | #ifdef FAKE_CTRL_AND_ALT |
diff --git a/core/apps/embeddedkonsole/konsole.cpp b/core/apps/embeddedkonsole/konsole.cpp index f13d0c9..adcfb7f 100644 --- a/core/apps/embeddedkonsole/konsole.cpp +++ b/core/apps/embeddedkonsole/konsole.cpp | |||
@@ -168,7 +168,8 @@ Konsole::Konsole(QWidget* parent, const char* name, WFlags fl) : | |||
168 | QMainWindow(parent, name, fl) | 168 | QMainWindow(parent, name, fl) |
169 | { | 169 | { |
170 | QStrList args; | 170 | QStrList args; |
171 | init("/bin/sh",args); | 171 | init("/bin/ash",args); |
172 | // init("/bin/sh",args); | ||
172 | } | 173 | } |
173 | 174 | ||
174 | Konsole::Konsole(const char* name, const char* _pgm, QStrList & _args, int) | 175 | Konsole::Konsole(const char* name, const char* _pgm, QStrList & _args, int) |