From df3594bd53c71d06f6e103f6782bb26b970beac4 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Thu, 19 Feb 2026 00:37:42 +0100 Subject: Autocomplete on space bar and undo on delete (#1179) * Refactor: Implement the space key as an editing action The space key is no longer a CHAR key but now an EDITING key. This allows changing the behavior of the space bar while allowing custom layout users to define a key outputing a space as before. KeyModifier and ComposeKey are updated to treat the space key as before. * Enter the best suggestion when the space bar is pressed * Refactor: Implement backspace as an editing action * Undo suggestion when delete is pressed The delete key (backspace internally) undoes the suggestion if the last action done was entering the suggestion with either the space bar or the candidates view. * Add an option to enable space bar autocomplete This option is off by default. Undoing a completion with backspace works in any case. * Refactor: Track selection emptyness in CurrentlyTypedWord This removes an expensive RPC call. --- res/xml/settings.xml | 1 + 1 file changed, 1 insertion(+) (limited to 'res/xml') diff --git a/res/xml/settings.xml b/res/xml/settings.xml index a63c9d8..d846dd1 100644 --- a/res/xml/settings.xml +++ b/res/xml/settings.xml @@ -14,6 +14,7 @@ + -- cgit v1.2.3