Skip to content

Commit c9f9413

Browse files
committed
test: for sym long press input method
1 parent 09cc074 commit c9f9413

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/src/main/java/com/gazlaws/codeboard/CodeBoardIME.java

+5
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,11 @@ public void onRelease(int primaryCode) {
422422

423423
public void onKeyLongPress(int keyCode) {
424424
InputConnection ic = getCurrentInputConnection();
425+
//Popup input method picker when the SYM key is long pressed
426+
if (keyCode == -1) {
427+
InputMethodManager imeManager = (InputMethodManager) getApplicationContext().getSystemService(Context.INPUT_METHOD_SERVICE);
428+
imeManager.showInputMethodPicker();
429+
}
425430

426431
if (keyCode == 32) { // Space button long press
427432
if (currentLayoutIndex == 0) {

0 commit comments

Comments
 (0)