Sfoglia il codice sorgente

Added keybinding for next and previous tabs

causefx 7 anni fa
parent
commit
e520839aae
2 ha cambiato i file con 13 aggiunte e 0 eliminazioni
  1. 13 0
      js/custom.js
  2. 0 0
      js/custom.min.js

+ 13 - 0
js/custom.js

@@ -1797,6 +1797,19 @@ Mousetrap.bind("d d", function() { toggleDebug() });
 Mousetrap.bind("esc", function () {
     $('.splash-screen').removeClass('in').addClass('hidden')
 });
+Mousetrap.bind('ctrl+shift+up', function(e) {
+    var getCurrentTab = $('.allTabsList a.active').parent();
+    var previousTab = getCurrentTab.prev().children();
+    previousTab.trigger("click");
+    parent.focus();
+    return false;
+});
+Mousetrap.bind('ctrl+shift+down', function(e) {
+    var getCurrentTab = $('.allTabsList a.active').parent();
+    var nextTab = getCurrentTab.next().children();
+    nextTab.trigger("click");
+    return false;
+});
 $(document).on('change', "#new-tab-form-chooseImage", function (e) {
     var newIcon = $('#new-tab-form-chooseImage').val();
     if(newIcon !== 'Select or type Icon'){

File diff suppressed because it is too large
+ 0 - 0
js/custom.min.js


Some files were not shown because too many files changed in this diff