Closed phazei closed 1 year ago
Thought I'd also note that it eat the tab key, so if I'm tabbing through the fields, it gets stuck there. I fix it like so:
override fun onKeyDown(keyCode: Int, event: KeyEvent?): Boolean {
when (keyCode) {
KeyEvent.KEYCODE_TAB -> {
return false
}
}
return super.onKeyDown(keyCode, event)
}
I have a super simple implementation:
In android studio emulator, it works fine when I use my full keyboard. Type something, hit comma or enter, it's a tag. But with the on screen keyboard, when I type something and press comma, it disappears. If I type "aaaaa ," or "aaaaa.," it works (there's a space or period before the comma in those), but "aaaaa," and it disappears. Same happens with the semicolon.
I'm using 3.0.2.
edit: Actually, comma or semicolon work fine as long as it isn't all letters.... maybe there's some default filtering happening? When it disappears, both the added, then removed callback are called.
It seems when the normal keyboard is used, inside of setFilters, the
source
is simply "," but if the soft keyboard is used, thesource
is "aaaa," It also seems like "beforeTextChange" is called more times when it's the soft keyboard.Final edit: Updated to 4.0.0-beta5, works, whew