Don't intercept key events when the search view in the toolbar is expanded

This commit is contained in:
cketti 2022-01-08 19:42:00 +01:00
parent b05c0ea5c4
commit 54ac569ea9

View file

@ -662,7 +662,7 @@ open class MessageList :
override fun dispatchKeyEvent(event: KeyEvent): Boolean {
var eventHandled = false
if (KeyEvent.ACTION_DOWN == event.action) {
if (event.action == KeyEvent.ACTION_DOWN && searchView.isIconified) {
eventHandled = onCustomKeyDown(event)
}