Skip to content

Commit 759c71a

Browse files
committed
remove implementations of open/closeKeyboard using show/hideSoftInput
They don't work for when device has a hard (slide-out) keyboard
1 parent 2cc12df commit 759c71a

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

core/src/processing/core/PApplet.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2388,22 +2388,6 @@ protected void nativeKeyEvent(android.view.KeyEvent event) {
23882388
}
23892389

23902390

2391-
public void openKeyboard() {
2392-
View view = surface.getRootView();
2393-
Context context = surface.getContext();
2394-
InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
2395-
imm.showSoftInput(view, InputMethodManager.SHOW_IMPLICIT);
2396-
}
2397-
2398-
2399-
public void closeKeyboard() {
2400-
View view = surface.getRootView();
2401-
Context context = surface.getContext();
2402-
InputMethodManager imm =(InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
2403-
imm.hideSoftInputFromWindow(view.getWindowToken(), 0);
2404-
}
2405-
2406-
24072391
public void keyPressed() { }
24082392

24092393

0 commit comments

Comments
 (0)