Don't intercept key events when the search view in the toolbar is expanded
@@ -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)
}
