am caf15c3c: Merge "Fix a bug that would persist caps lock state" into jb-mr1-dev
* commit 'caf15c3c678dc9e95b1bcdc33ee0cb10182f171c': Fix a bug that would persist caps lock statemain
commit
94567d8bea
|
@ -265,9 +265,12 @@ public class WordComposer {
|
|||
* @return true if all user typed chars are upper case, false otherwise
|
||||
*/
|
||||
public boolean isAllUpperCase() {
|
||||
if (size() <= 1) {
|
||||
return mCapitalizedMode == CAPS_MODE_AUTO_SHIFT_LOCKED
|
||||
|| mCapitalizedMode == CAPS_MODE_MANUAL_SHIFT_LOCKED
|
||||
|| (mCapsCount > 1) && (mCapsCount == size());
|
||||
|| mCapitalizedMode == CAPS_MODE_MANUAL_SHIFT_LOCKED;
|
||||
} else {
|
||||
return mCapsCount == size();
|
||||
}
|
||||
}
|
||||
|
||||
public boolean wasShiftedNoLock() {
|
||||
|
|
Loading…
Reference in New Issue