Fix "pi" input issues. Added a popup for greek capital pi. Bug: 2220892

Change-Id: Ie465e2ed93c79b0efe9d518cc44df1028f1bb392
main
Ken Wakasa 2010-06-30 19:10:11 +09:00
parent 40c86618c1
commit 67607ea8b1
3 changed files with 11 additions and 3 deletions

View File

@ -34,7 +34,10 @@
android:popupCharacters="♪♥♠♦♣"
/>
<Key android:keyLabel="√"/>
<Key android:keyLabel="π"/>
<Key android:keyLabel="π"
android:popupKeyboard="@xml/kbd_popup_template"
android:popupCharacters="Π"
/>
<Key android:keyLabel="÷"/>
<Key android:keyLabel="×"/>
<Key android:keyLabel="{"/>

View File

@ -34,7 +34,10 @@
android:popupCharacters="♪♥♠♦♣"
/>
<Key android:keyLabel="√"/>
<Key android:keyLabel="π"/>
<Key android:keyLabel="π"
android:popupKeyboard="@xml/kbd_popup_template"
android:popupCharacters="Π"
/>
<Key android:keyLabel="÷"/>
<Key android:keyLabel="×"/>
<Key android:keyLabel="{"/>

View File

@ -1144,7 +1144,9 @@ public class LatinIME extends InputMethodService
}
}
if (mPredicting) {
if (mKeyboardSwitcher.getInputView().isShifted() && mComposing.length() == 0) {
if (mKeyboardSwitcher.getInputView().isShifted()
&& mKeyboardSwitcher.isAlphabetMode()
&& mComposing.length() == 0) {
mWord.setCapitalized(true);
}
mComposing.append((char) primaryCode);