Skip to content

Commit 06950ac

Browse files
committed
Fix for #43
1 parent 374449e commit 06950ac

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

wrywebview/src/main/kotlin/io/github/kdroidfilter/webview/wry/WryWebViewPanel.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ class WryWebViewPanel(
6060
// Request focus when clicked to capture keyboard events
6161
host.addMouseListener(object : MouseAdapter() {
6262
override fun mousePressed(e: MouseEvent?) {
63-
host.requestFocusInWindow()
6463
requestWebViewFocus()
6564
}
6665
})
@@ -344,7 +343,6 @@ class WryWebViewPanel(
344343

345344
fun requestWebViewFocus() {
346345
val action = {
347-
host.requestFocusInWindow()
348346
webviewId?.let { NativeBindings.focus(it) }
349347
}
350348
if (SwingUtilities.isEventDispatchThread()) {

0 commit comments

Comments
 (0)