From e32bcce9d17ff79dd3689aaf9317c93ae518bfc2 Mon Sep 17 00:00:00 2001 From: Ramiro Saenz Date: Fri, 29 Mar 2019 11:04:16 -0300 Subject: [PATCH] Update WebView.js --- app/ux/WebView.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/ux/WebView.js b/app/ux/WebView.js index bf01817e..d3d26ddd 100644 --- a/app/ux/WebView.js +++ b/app/ux/WebView.js @@ -1,7 +1,7 @@ /** * Default config for all webviews created */ -const keycode = require('keycodes') + Ext.define('Rambox.ux.WebView',{ extend: 'Ext.panel.Panel' ,xtype: 'webview' @@ -455,6 +455,8 @@ Ext.define('Rambox.ux.WebView',{ webview.executeJavaScript(js_inject); }); + + const keycode = require('keycodes'); webview.getWebContents().on('before-input-event', (event, input) => { if (input.type !== 'keyDown') { // event used by default return;