void ScriptWidget::onCursorPositionChanged(int line, int index) { if (_disableTextAndCursorNotifications) return; if (_textChanged) { showAutocompletion(); _textChanged = false; } }
void FastoScintilla::keyPressEvent(QKeyEvent* keyEvent) { if (keyEvent->key() == Qt::Key_F11) { keyEvent->ignore(); showOrHideLinesNumbers(); return; } if (showAutoCompletion_) { if (common::qt::gui::isAutoCompleteShortcut(keyEvent)) { showAutocompletion(); return; } else if (common::qt::gui::isHideAutoCompleteShortcut(keyEvent)) { hideAutocompletion(); return; } } QsciScintilla::keyPressEvent(keyEvent); }