Revert "Add Ctrl+PageUp/PageDown key shortcuts for switching tabs"
This reverts commit a69ebc8a68e52ffcf1b746b3be15cc619c8b1110. This was accidentally the old change.
This commit is contained in:
parent
a69ebc8a68
commit
d23c374326
@ -151,16 +151,6 @@ Notebook.prototype = {
|
|||||||
return;
|
return;
|
||||||
let vAdjust = tabData.scrollView.vscroll.adjustment;
|
let vAdjust = tabData.scrollView.vscroll.adjustment;
|
||||||
vAdjust.value = vAdjust.upper - vAdjust.page_size;
|
vAdjust.value = vAdjust.upper - vAdjust.page_size;
|
||||||
},
|
|
||||||
|
|
||||||
nextTab: function() {
|
|
||||||
let nextIndex = this._selectedIndex < this._tabs.length - 1 ? this._selectedIndex + 1 : this._selectedIndex;
|
|
||||||
this.selectIndex(nextIndex);
|
|
||||||
},
|
|
||||||
|
|
||||||
prevTab: function() {
|
|
||||||
let nextIndex = this._selectedIndex > 0 ? this._selectedIndex - 1 : 0;
|
|
||||||
this.selectIndex(nextIndex);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Signals.addSignalMethods(Notebook.prototype);
|
Signals.addSignalMethods(Notebook.prototype);
|
||||||
@ -1005,7 +995,6 @@ LookingGlass.prototype = {
|
|||||||
// Handle key events which are relevant for all tabs of the LookingGlass
|
// Handle key events which are relevant for all tabs of the LookingGlass
|
||||||
_globalKeyPressEvent : function(actor, event) {
|
_globalKeyPressEvent : function(actor, event) {
|
||||||
let symbol = event.get_key_symbol();
|
let symbol = event.get_key_symbol();
|
||||||
let modifierState = Shell.get_event_state(event);
|
|
||||||
if (symbol == Clutter.Escape) {
|
if (symbol == Clutter.Escape) {
|
||||||
if (this._objInspector.actor.visible) {
|
if (this._objInspector.actor.visible) {
|
||||||
this._objInspector.close();
|
this._objInspector.close();
|
||||||
@ -1014,14 +1003,6 @@ LookingGlass.prototype = {
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
// Ctrl+PgUp and Ctrl+PgDown switches tabs in the notebook view
|
|
||||||
if (modifierState & Clutter.ModifierType.CONTROL_MASK) {
|
|
||||||
if (symbol == Clutter.KEY_Page_Up) {
|
|
||||||
this._notebook.nextTab();
|
|
||||||
} else if (symbol == Clutter.KEY_Page_Down) {
|
|
||||||
this._notebook.prevTab();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user