Browse Source

Set different shortcut to switch conversation for mac users. Fixes #1249

master
Abel 'Akronix' Serrano Juste 8 years ago
parent
commit
d338a83d87
  1. 10
      app/js/directives.js

10
app/js/directives.js

@ -769,8 +769,14 @@ angular.module('myApp.directives', ['myApp.filters'])
return cancelEvent(e); return cancelEvent(e);
} }
if ( e.altKey && e.shiftKey && !e.ctrlKey && !e.metaKey && if (
e.keyCode >= 49 && e.keyCode <= 57 ) { // Alt + Shift + # , switch to conversation # where # is in [1..9] (!Config.Navigator.osX && // No Mac users
e.altKey && e.shiftKey && !e.ctrlKey && !e.metaKey &&
e.keyCode >= 49 && e.keyCode <= 57 ) // Alt + Shift + # , switch to conversation # where # is in [1..9]
||
(Config.Navigator.osX && // Mac users only
e.ctrlKey && e.shiftKey && !e.metaKey && !e.altKey &&
e.keyCode >= 49 && e.keyCode <= 57 ) ) { // Ctrl + Shift + # , switch to conversation # where # is in [1..9]
var dialogNumber = e.keyCode - 49, var dialogNumber = e.keyCode - 49,
dialogWraps = $(scrollableWrap).find('.im_dialog_wrap'), dialogWraps = $(scrollableWrap).find('.im_dialog_wrap'),

Loading…
Cancel
Save