daedalOS icon indicating copy to clipboard operation
daedalOS copied to clipboard

Mobile VirtualKeyboard issues on Firefox

Open comods opened this issue 1 year ago • 2 comments

On Android Firefox trying to type in Terminal and Monaco Editor.

Using DustinBrett.com on Android Firefox Beta 130.0b9:

  • 1.1 ok: Typing testing into Terminal types testing.
  • 1.2 ok: Typing testing\n into Terminal types testing\n.
  • 2.1 er: Typing testing into Monaco Editor types esting.
  • 2.2 er: Typing testing\n into Monaco Editor types wrong then eventually types testing\n.
  • 3.1 er: Typing tes then clicking testing from keyboard suggestion then typing \b\b (backspaces) into Terminal types testintesti.
  • 3.2 er: Typing tes then clicking testing from keyboard suggestion then typing \b\b\n (backspaces) into Terminal types testin.

Using DustinBrett.com on Android Tor (Android Firefox ESR) 115.2.1:

  • 1.1 er: Typing testing into Terminal types t.
  • 1.2 er: Typing testing\n into Terminal types ttesting\n.
  • 2.1 er: Typing testing into Monaco Editor types esting.
  • 2.2 er: Typing testing\n into Monaco Editor types wrong then eventually types testing\n.
  • 3.1 er: Typing tes then clicking testing from keyboard suggestion then typing \b\b (backspaces) into Terminal types ttestingtesti.
  • 3.2 er: Typing tes then clicking testing from keyboard suggestion then typing \b\b\n (backspaces) into Terminal types ttesting.

This is probably related to browser CompositionEvent events not being properly handled or are not consistent across browsers.

See: https://developer.mozilla.org/en-US/docs/Web/API/Element/compositionstart_event

comods avatar Jan 03 '25 08:01 comods

Using DustinBrett.com on Android Firefox Beta 130.0b9 and also on Android Tor (Android Firefox ESR) 115.2.1:

  • 4.1 Cannot type at all into js-dos v7, VirtualKeyboard will not open.

comods avatar Jan 03 '25 09:01 comods

Thanks for all this testing of the keyboard. I will look into inconsistencies with the inputs, and will also check on composition events which I actually dind't know about.

Indeed js-dos not having a keyboard is known, I plan to redo js-dos to the latest version which will add back in support for mobile.

DustinBrett avatar Jan 03 '25 17:01 DustinBrett