fixed the virtual filter key icon not updating sometimes, and prevented unnecessary rendering when not using a virtual numpad
This commit is contained in:
parent
a6fc0766e9
commit
cb22c1a7ed
2 changed files with 22 additions and 3 deletions
|
|
@ -288,7 +288,9 @@ public abstract class HotkeyHandler extends CommandHandler {
|
|||
|
||||
backward = isLanguageRTL != backward;
|
||||
scrollSuggestions(backward);
|
||||
if (settings.isMainLayoutNumpad()) {
|
||||
mainView.render();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -118,7 +118,9 @@ public abstract class TypingHandler extends KeyPadHandler {
|
|||
|
||||
if (appHacks.onBackspace(settings, mInputMode)) {
|
||||
mInputMode.reset();
|
||||
if (settings.isMainLayoutNumpad()) {
|
||||
mainView.render();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -151,7 +153,9 @@ public abstract class TypingHandler extends KeyPadHandler {
|
|||
statusBar.setText(mInputMode);
|
||||
}
|
||||
|
||||
if (settings.isMainLayoutNumpad()) {
|
||||
mainView.render();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
@ -185,6 +189,9 @@ public abstract class TypingHandler extends KeyPadHandler {
|
|||
String lastWord = suggestionOps.acceptIncompleteAndKeepList();
|
||||
mInputMode.onAcceptSuggestion(lastWord);
|
||||
autoCorrectSpace(lastWord, false, key);
|
||||
if (settings.isMainLayoutNumpad()) {
|
||||
mainView.render();
|
||||
}
|
||||
}
|
||||
|
||||
// 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);
|
||||
|
||||
forceShowWindow();
|
||||
if (settings.isMainLayoutNumpad()) {
|
||||
mainView.render();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
@ -368,6 +379,9 @@ public abstract class TypingHandler extends KeyPadHandler {
|
|||
mInputMode.onAcceptSuggestion(word, true);
|
||||
autoCorrectSpace(word, false, mInputMode.getSequence().isEmpty() ? -1 : mInputMode.getSequence().charAt(0) - '0');
|
||||
mInputMode.determineNextWordTextCase();
|
||||
if (settings.isMainLayoutNumpad()) {
|
||||
mainView.render();
|
||||
}
|
||||
}
|
||||
|
||||
private void onAcceptSuggestionsDelayed(String word) {
|
||||
|
|
@ -380,6 +394,9 @@ public abstract class TypingHandler extends KeyPadHandler {
|
|||
if (!word.isEmpty()) {
|
||||
autoCorrectSpace(word, true, fromKey);
|
||||
resetKeyRepeat();
|
||||
if (settings.isMainLayoutNumpad()) {
|
||||
mainView.render();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue