diff --git a/src/net/schwiz/wolfram/full/SoftKeyboard.java b/src/net/schwiz/wolfram/full/SoftKeyboard.java index 5464f5f..1eaa5da 100644 --- a/src/net/schwiz/wolfram/full/SoftKeyboard.java +++ b/src/net/schwiz/wolfram/full/SoftKeyboard.java @@ -198,7 +198,7 @@ public class SoftKeyboard extends InputMethodService default: // For all unknown input types, default to the alphabetic // keyboard with no special features. - mCurKeyboard = mSymbolsKeyboard; + mCurKeyboard = mQwertyKeyboard; mPredictionOn = false; updateShiftKeyState(attribute); } @@ -677,6 +677,12 @@ else if (primaryCode == 950 || primaryCode == 918){ else if(primaryCode == getResources().getInteger(R.dimen.lim)){ getCurrentInputConnection().commitText("lim x->", 1); } + else if(primaryCode == 21){ + getCurrentInputConnection().sendKeyEvent(new KeyEvent(KeyEvent.ACTION_DOWN,KeyEvent.KEYCODE_DPAD_LEFT)); + } + else if(primaryCode == 22){ + getCurrentInputConnection().sendKeyEvent(new KeyEvent(KeyEvent.ACTION_DOWN,KeyEvent.KEYCODE_DPAD_RIGHT)); + } else { getCurrentInputConnection().commitText( String.valueOf((char) primaryCode), 1);