Ver Fonte

Added keybinding for next and previous tabs

causefx há 7 anos atrás
pai
commit
e520839aae
2 ficheiros alterados com 13 adições e 0 exclusões
  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'){

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
js/custom.min.js


Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff