[BUG] You can use spaces in tags in the import screen on AnkiDroid

Steps to reproduce

In AnkiDroid:

  1. Export a few notes as txt.
  2. Import them back.
  3. Type “hello world” in the tag boxes.

Expected behavior

The tag “hello” is added. The tag “world” isn’t added until we press space or enter.

Actual behavior

Debug info

AnkiDroid Version = 2.24.0beta2 (75dd9f62be30113b118d590b56404b56d64fb7d6)  
Backend Version = 0.1.64-anki25.09.2 (25.09.2 3890e12c9e48c028c3f12aa58cb64bd9f8895e30)  
Android Version = 13 (SDK 33)  
ProductFlavor = full  
Device Info = Xiaomi | POCO | mondrian | mondrian_global | 23013PC75G | qcom  
WebView Info = [com.google.android.webview | 772705503]: Mozilla/5.0 (Linux; Android 13; 23013PC75G Build/TKQ1.220905.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/147.0.7727.55 Mobile Safari/537.36  
ACRA UUID = d4397477-c6d7-4d3f-9201-5f836f252781  
FSRS = 5.1.0 (Enabled: true)  
Crash Reports Enabled = true

Extra

If this should be fixed on the AnkiDroid side, let me know.

On desktop, this results in hello::world. I think this needs to be fixed on desktop (probably not detecting space as a special key there).

Oh, I actually did test it on Anki Desktop and noticed the hello::world, yet still wrote what I wrote! I need to pay more attention…