mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/code] Autocomplete when cursor at the end of the word
Not just after adding or deleting text
This commit is contained in:
@@ -236,7 +236,8 @@ bool PythonTextArea::handleEvent(Ion::Events::Event event) {
|
||||
}
|
||||
}
|
||||
bool result = TextArea::handleEvent(event);
|
||||
if (event == Ion::Events::Backspace) {
|
||||
if (!m_contentView.isAutocompleting() && selectionIsEmpty()) {
|
||||
// Add autocompletion after each event handled, if nothing is selected
|
||||
addAutocompletion();
|
||||
}
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user