* commit '94567d8bea35555b5708e517c857dfe7c3d0eff8': Fix a bug that would persist caps lock state
This commit is contained in:
commit
72f79c6634
1 changed files with 6 additions and 3 deletions
|
@ -265,9 +265,12 @@ public class WordComposer {
|
|||
* @return true if all user typed chars are upper case, false otherwise
|
||||
*/
|
||||
public boolean isAllUpperCase() {
|
||||
return mCapitalizedMode == CAPS_MODE_AUTO_SHIFT_LOCKED
|
||||
|| mCapitalizedMode == CAPS_MODE_MANUAL_SHIFT_LOCKED
|
||||
|| (mCapsCount > 1) && (mCapsCount == size());
|
||||
if (size() <= 1) {
|
||||
return mCapitalizedMode == CAPS_MODE_AUTO_SHIFT_LOCKED
|
||||
|| mCapitalizedMode == CAPS_MODE_MANUAL_SHIFT_LOCKED;
|
||||
} else {
|
||||
return mCapsCount == size();
|
||||
}
|
||||
}
|
||||
|
||||
public boolean wasShiftedNoLock() {
|
||||
|
|
Loading…
Reference in a new issue