Fix Hardware Key action when popup is on 45/108545/2
authorws29.jung <ws29.jung@samsung.com>
Thu, 5 Jan 2017 04:22:04 +0000 (13:22 +0900)
committerws29.jung <ws29.jung@samsung.com>
Thu, 5 Jan 2017 04:35:22 +0000 (13:35 +0900)
This patch fix hardware key handling when popup is shown.
Before this patch, hardware key handled in wrt before popup action is done
when key is repidly tabbed.
Now when popup is on, wrt will not trigger event.

Bug: http://suprem.sec.samsung.net/jira/browse/TSAM-12331

Change-Id: I7b620e4f4349e8c54849ee9d24a66c0ccbe062f7
Signed-off-by: ws29.jung <ws29.jung@samsung.com>
runtime/browser/web_view_impl.cc

index ca2a92c..cc52275 100644 (file)
@@ -993,7 +993,7 @@ void WebViewImpl::OnKeyEvent(Eext_Callback_Type key_type) {
     return;
   }
 
-  if (listener_) {
+  if (listener_ && !internal_popup_opened_) {
     listener_->OnHardwareKey(view_, keyname);
   }
 }