Browse Source

Update WebView.js

pull/2195/head
Ramiro Saenz 6 years ago committed by GitHub
parent
commit
e32bcce9d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/ux/WebView.js

4
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;

Loading…
Cancel
Save