Currently the Ctrl-Space keybinding is used for the autocompletion operator in the text editor, and to maximize area everywhere else. To fix this, a new operator indent_or_autocomplete is replacing the indent operator and has the following behavior:
- if the character before the cursor is whitespace, the line is indented
- if the character before the cursor is not whitespace, the current word is autocompleted
By default, this new operator is bound to the Tab key.
The default keybinding for the autocomplete operator is also removed (but the operator itself is not).
Related to T67213
(this is my first patch, please tell me if I did anything incorrectly)