MCPcopy Create free account
hub / github.com/baumgarr/nixnote2 / enterPressed

Method enterPressed

gui/nbrowserwindow.cpp:2042–2054  ·  view source on GitHub ↗

Backtab pressed.

Source from the content-addressed store, hash-verified

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

Callers 1

eventMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected