1
0
Fork 0

fixed the virtual filter key icon not updating sometimes, and prevented unnecessary rendering when not using a virtual numpad

This commit is contained in:
sspanak 2025-05-19 17:01:26 +03:00 committed by Dimo Karaivanov
parent a6fc0766e9
commit cb22c1a7ed
2 changed files with 22 additions and 3 deletions

View file

@ -288,7 +288,9 @@ public abstract class HotkeyHandler extends CommandHandler {
backward = isLanguageRTL != backward; backward = isLanguageRTL != backward;
scrollSuggestions(backward); scrollSuggestions(backward);
if (settings.isMainLayoutNumpad()) {
mainView.render(); mainView.render();
}
return true; return true;
} }

View file

@ -118,7 +118,9 @@ public abstract class TypingHandler extends KeyPadHandler {
if (appHacks.onBackspace(settings, mInputMode)) { if (appHacks.onBackspace(settings, mInputMode)) {
mInputMode.reset(); mInputMode.reset();
if (settings.isMainLayoutNumpad()) {
mainView.render(); mainView.render();
}
return false; return false;
} }
@ -151,7 +153,9 @@ public abstract class TypingHandler extends KeyPadHandler {
statusBar.setText(mInputMode); statusBar.setText(mInputMode);
} }
if (settings.isMainLayoutNumpad()) {
mainView.render(); mainView.render();
}
return true; return true;
} }
@ -185,6 +189,9 @@ public abstract class TypingHandler extends KeyPadHandler {
String lastWord = suggestionOps.acceptIncompleteAndKeepList(); String lastWord = suggestionOps.acceptIncompleteAndKeepList();
mInputMode.onAcceptSuggestion(lastWord); mInputMode.onAcceptSuggestion(lastWord);
autoCorrectSpace(lastWord, false, key); autoCorrectSpace(lastWord, false, key);
if (settings.isMainLayoutNumpad()) {
mainView.render();
}
} }
// Auto-adjust the text case before each word, if the InputMode supports it. // Auto-adjust the text case before each word, if the InputMode supports it.
@ -230,6 +237,10 @@ public abstract class TypingHandler extends KeyPadHandler {
autoCorrectSpace(text, true, -1); autoCorrectSpace(text, true, -1);
forceShowWindow(); forceShowWindow();
if (settings.isMainLayoutNumpad()) {
mainView.render();
}
return true; return true;
} }
@ -368,6 +379,9 @@ public abstract class TypingHandler extends KeyPadHandler {
mInputMode.onAcceptSuggestion(word, true); mInputMode.onAcceptSuggestion(word, true);
autoCorrectSpace(word, false, mInputMode.getSequence().isEmpty() ? -1 : mInputMode.getSequence().charAt(0) - '0'); autoCorrectSpace(word, false, mInputMode.getSequence().isEmpty() ? -1 : mInputMode.getSequence().charAt(0) - '0');
mInputMode.determineNextWordTextCase(); mInputMode.determineNextWordTextCase();
if (settings.isMainLayoutNumpad()) {
mainView.render();
}
} }
private void onAcceptSuggestionsDelayed(String word) { private void onAcceptSuggestionsDelayed(String word) {
@ -380,6 +394,9 @@ public abstract class TypingHandler extends KeyPadHandler {
if (!word.isEmpty()) { if (!word.isEmpty()) {
autoCorrectSpace(word, true, fromKey); autoCorrectSpace(word, true, fromKey);
resetKeyRepeat(); resetKeyRepeat();
if (settings.isMainLayoutNumpad()) {
mainView.render();
}
} }
} }