Commit Graph

13 Commits

Author SHA1 Message Date
Hajime Hoshi
96e0fd7a50 exp/textinput: bug fix: pressing enter key was often ignored on iOS Safari
Closes #3015
2024-06-12 02:44:51 +09:00
Hajime Hoshi
546c47878d exp/textinput: bug fix: issues on browsers
This change addresses on these issues on browsers:

* Pressing cursor keys didn't work well.
  This is fixed by calling trySend with true on desktops (not mobiles).
* Inputting failed just after moving a cursor.
  This is fixed by resetting a session correctly.
* Sometimes pressing the enter key inserted a new line unexpectedly.
  This is fixed by calling `preventDefault`.

Closes #3014
2024-06-12 01:31:15 +09:00
Hajime Hoshi
dd6f5c4565 exp/textinput: bug fix: flaky behavior on iOS Safari
Closes #2898
2024-02-06 12:46:37 +09:00
Hajime Hoshi
d7fc49355b exp/textinput: use mouseup for consistency 2024-02-06 00:53:52 +09:00
Hajime Hoshi
0160d40bfb exp/textinput: bug fix: keyboards didn't show immediately after touching
Updates #2898
2024-02-05 23:40:09 +09:00
Hajime Hoshi
7eee3929de exp/textinput: bug fix: a virtual keybord didn't show on iOS Safari
This change fixes the issue by processing a textarea element in a
click or touchstart event.

There is still little odd behaviors, like a keyboard is sometimes
not shown. Let's fix them later.

Updates #2898
2024-02-05 01:01:02 +09:00
Hajime Hoshi
e3b54b41c2 exp/textinput: bug fix: inputting words doesn't work correctly on Android 2024-02-04 14:28:53 +09:00
Hajime Hoshi
60673752a1 exp/textinput: bug fix: enter key doesn't insert a new line char 2024-02-04 14:20:29 +09:00
Hajime Hoshi
5c7bfd3ed7 exp/textinput, examples/textinput: bug fix: handle input states correctly on Android Chrome
Updates #2898
2024-02-03 22:53:42 +09:00
Hajime Hoshi
2ad6ab0dcf exp/textinput: bug fix: position conversion was wrong 2024-01-31 03:51:30 +09:00
Hajime Hoshi
0378230b3e internal/ui: refactoring: reduce theUI 2023-10-15 17:02:15 +09:00
Hajime Hoshi
f25f46f50c exp/textinput: bug fix: compile failure 2023-10-15 03:50:40 +09:00
Hajime Hoshi
929539b66e add exp/textinput package
This works only for macOS and browsers so far.

Updates #1029
2023-07-05 02:09:04 +09:00