Browse Source

Change Mac DND shortcut to Cmd+Alt+D

pull/2574/head
Vulich Fernando 5 years ago
parent
commit
c309c0f385
  1. 2
      app/Application.js
  2. 1
      app/ux/WebView.js

2
app/Application.js

@ -165,7 +165,7 @@ Ext.define('Rambox.Application', {
if ( currentTab.getWebView ) currentTab.showSearchBox(true); if ( currentTab.getWebView ) currentTab.showSearchBox(true);
}); });
// Add shortcut to Do Not Disturb // Add shortcut to Do Not Disturb
Mousetrap.bind(platform === 'darwin' ? ["command+d"] : ["shift+alt+d"], function(e, combo) { Mousetrap.bind(platform === 'darwin' ? ["command+alt+d"] : ["shift+alt+d"], function(e, combo) {
var btn = Ext.getCmp('disturbBtn'); var btn = Ext.getCmp('disturbBtn');
btn.toggle(); btn.toggle();
Ext.cq1('app-main').getController().dontDisturb(btn, true); Ext.cq1('app-main').getController().dontDisturb(btn, true);

1
app/ux/WebView.js

@ -520,6 +520,7 @@ Ext.define('Rambox.ux.WebView',{
var keys = []; var keys = [];
keys['ƒ'] = 'f'; // Search keys['ƒ'] = 'f'; // Search
keys[' '] = 'l'; // Lock keys[' '] = 'l'; // Lock
keys['∂'] = 'd'; // DND
input.key = keys[input.key] ? keys[input.key] : input.key; input.key = keys[input.key] ? keys[input.key] : input.key;
} }

Loading…
Cancel
Save