diff options
| author | Jules Aguillon | 2026-02-01 23:25:38 +0100 |
|---|---|---|
| committer | GitHub | 2026-02-01 23:25:38 +0100 |
| commit | 2ecf93d9904544ee73159e9f0ee74b49057bca6c (patch) | |
| tree | b574489e776a9ca665c7cc97b75f127527e59cd1 /srcs/juloo.keyboard2/Suggestions.java | |
| parent | b9072daaf62d5decb3377beeb281790a7512ae02 (diff) | |
| download | unexpected-keyboard-2ecf93d9904544ee73159e9f0ee74b49057bca6c.tar.gz unexpected-keyboard-2ecf93d9904544ee73159e9f0ee74b49057bca6c.zip | |
Candidates view improvements (#1168)
* Refactor: Create subpackage 'suggestions'
* Candidates view: Status message when no dictionary installed
Show a message on the candidates view instead of leaving it empty. A
button points to the dictionary installation activity.
* Add an option to disable the suggestions
* Refactor: Remove Config.should_show_candidates_view
This was moved to EditorConfig.
* Don't disable text suggestions in some text boxes
* Suggestion text size matching settings
The candidates view height is based on the height of keyboard rows and
the suggestion text size is based on the size of labels on the keys.
This is influenced by symbol size and keyboard height options.
Diffstat (limited to 'srcs/juloo.keyboard2/Suggestions.java')
| -rw-r--r-- | srcs/juloo.keyboard2/Suggestions.java | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/srcs/juloo.keyboard2/Suggestions.java b/srcs/juloo.keyboard2/Suggestions.java deleted file mode 100644 index 4c0c97a..0000000 --- a/srcs/juloo.keyboard2/Suggestions.java +++ /dev/null @@ -1,36 +0,0 @@ -package juloo.keyboard2; - -import java.util.List; -import java.util.Arrays; - -/** Keep track of the word being typed and provide suggestions for - [CandidatesView]. */ -public final class Suggestions -{ - Callback _callback; - - public Suggestions(Callback c) - { - _callback = c; - } - - public void currently_typed_word(String word) - { - if (word.equals("")) - { - _callback.set_suggestions(NO_SUGGESTIONS); - } - else - { - // TODO - _callback.set_suggestions(Arrays.asList(word)); - } - } - - static final List<String> NO_SUGGESTIONS = Arrays.asList(); - - public static interface Callback - { - public void set_suggestions(List<String> suggestions); - } -} |
