MCPcopy Create free account
hub / github.com/GilesBathgate/RapCAD / keyPressEvent

Method keyPressEvent

src/ui/codeeditor.cpp:181–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179}
180
181void CodeEditor::keyPressEvent(QKeyEvent* e)
182{
183 if(e->key()==Qt::Key_Tab) {
184 if(e->modifiers()==Qt::ControlModifier)
185 return decreaseSelectionIndent();
186 if(textCursor().hasSelection())
187 return increaseSelectionIndent();
188 }
189
190 return QPlainTextEdit::keyPressEvent(e);
191}
192
193int CodeEditor::getSelectionBlockCount()
194{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected