I have an EditText and WebView.
I wanna show custom search view when user press Control + F
.
Below codes works when EditText is in focused state.
But after I touch WebView (EditText is not focused), it do not work. How can I do? Please help me, thanks.
@Override
public boolean onKeyUp(int keyCode, KeyEvent event)
{
switch(keyCode){
case (KeyEvent.KEYCODE_F):
if(event.isCtrlPressed()){
//show Custom View
}
return true;
default:
return super.onKeyUp(keyCode, event);
}
}