Skip to content

Commit

Permalink
test: for sym long press input method
Browse files Browse the repository at this point in the history
  • Loading branch information
abrarishere committed Sep 23, 2024
1 parent 09cc074 commit c9f9413
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/src/main/java/com/gazlaws/codeboard/CodeBoardIME.java
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,11 @@ public void onRelease(int primaryCode) {

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

if (keyCode == 32) { // Space button long press
if (currentLayoutIndex == 0) {
Expand Down

0 comments on commit c9f9413

Please sign in to comment.