summaryrefslogtreecommitdiff
path: root/core/apps/embeddedkonsole/TEWidget.cpp
authorllornkcor <llornkcor>2002-04-28 15:08:04 (UTC)
committer llornkcor <llornkcor>2002-04-28 15:08:04 (UTC)
commitd9a38221ea876cae8ef8b015968e14af75e202bb (patch) (side-by-side diff)
tree624d057fa2ee702140aee1ef061713af878d92b1 /core/apps/embeddedkonsole/TEWidget.cpp
parentc55ffe32ced1ecbac991ca2e85c6993cf8a04ee0 (diff)
downloadopie-d9a38221ea876cae8ef8b015968e14af75e202bb.zip
opie-d9a38221ea876cae8ef8b015968e14af75e202bb.tar.gz
opie-d9a38221ea876cae8ef8b015968e14af75e202bb.tar.bz2
harcoded Shift & Key_Tab to emit a '\' character
Diffstat (limited to 'core/apps/embeddedkonsole/TEWidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/embeddedkonsole/TEWidget.cpp8
1 files changed, 6 insertions, 2 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
@@ -987,13 +987,13 @@ bool TEWidget::eventFilter( QObject *obj, QEvent *e )
QApplication::sendEvent(scrollbar, e);
}
#ifdef FAKE_CTRL_AND_ALT
static bool control = FALSE;
static bool alt = FALSE;
- // Has a keyboard with no CTRL and ALT keys, but we fake it:
+ qDebug(" Has a keyboard with no CTRL and ALT keys, but we fake it:");
bool dele=FALSE;
if ( e->type() == QEvent::KeyPress || e->type() == QEvent::KeyRelease ) {
QKeyEvent* ke = (QKeyEvent*)e;
bool keydown = e->type() == QEvent::KeyPress || ke->isAutoRepeat();
switch (ke->key()) {
case Key_F9: // let this be "Control"
@@ -1024,16 +1024,20 @@ bool TEWidget::eventFilter( QObject *obj, QEvent *e )
}
#endif
if ( e->type() == QEvent::KeyPress )
{
QKeyEvent* ke = (QKeyEvent*)e;
-
actSel=0; // Key stroke implies a screen update, so TEWidget won't
// know where the current selection is.
+// qDebug("key pressed is 0x%x",ke->key());
+ if( ke->state() == ShiftButton && ke->key() == Key_Tab) { //lets hardcode this sucker
+// qDebug("key pressed 2 is 0x%x",ke->key());
+ emitText("\\"); // expose
+ } else
emit keyPressedSignal(ke); // expose
ke->accept();
#ifdef FAKE_CTRL_AND_ALT
if ( dele ) delete e;
#endif
return true; // stop the event