Browse Source

Fix AZERTY Ctrl Z and Ctrl W

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

5
app/ux/WebView.js

@ -458,9 +458,8 @@ Ext.define('Rambox.ux.WebView',{
const keycode = require('keycodes');
webview.getWebContents().on('before-input-event', (event, input) => {
if (input.type !== 'keyDown') { // event used by default
return;
}
if (input.type !== 'keyDown' || input.key === 'z' || input.key === 'a' ) return; // event used by default
// because keyCode property is not passed
// Create a fake KeyboardEvent from the data provided
var emulatedKeyboardEvent = new KeyboardEvent('keydown', {

Loading…
Cancel
Save