Backtab pressed.
| 2040 | |
| 2041 | // Backtab pressed. |
| 2042 | bool NBrowserWindow::enterPressed() { |
| 2043 | if (!insidePre) |
| 2044 | return false; |
| 2045 | |
| 2046 | QString script = "document.execCommand('insertHTML', false, ' ');"; |
| 2047 | |
| 2048 | editor->page()->mainFrame()->evaluateJavaScript(script); |
| 2049 | return true; |
| 2050 | |
| 2051 | // QKeyEvent *down = new QKeyEvent(QEvent::KeyPress, Qt::Key_Down, Qt::NoModifier); |
| 2052 | // QCoreApplication::postEvent(editor->editorPage, down); |
| 2053 | |
| 2054 | } |
| 2055 | |
| 2056 | |
| 2057 |