onKeyDown

open override fun onKeyDown(keyCode: Int, event: KeyEvent): Boolean

Html in-app messages can alternatively be closed by the back button.

Note: If the internal WebView has focus instead of this view, back button events on html in-app messages are handled separately in InAppMessageWebView.onKeyDown

Return

If the button pressed was the back button, close the in-app message and return true to indicate that the event was handled.