mirror of
https://github.com/Eugeny/tabby
synced 2024-11-16 01:38:07 +00:00
fixed cycling tab reordering via hotkeys - fixes #3510
This commit is contained in:
parent
e42bd11725
commit
604d7c464f
1 changed files with 2 additions and 2 deletions
|
@ -263,7 +263,7 @@ export class AppService {
|
||||||
if (tabIndex > 0) {
|
if (tabIndex > 0) {
|
||||||
this.swapTabs(this._activeTab, this.tabs[tabIndex - 1])
|
this.swapTabs(this._activeTab, this.tabs[tabIndex - 1])
|
||||||
} else if (this.config.store.appearance.cycleTabs) {
|
} else if (this.config.store.appearance.cycleTabs) {
|
||||||
this.swapTabs(this._activeTab, this.tabs[this.tabs.length - 1])
|
this.tabs.push(this.tabs.shift()!)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -277,7 +277,7 @@ export class AppService {
|
||||||
if (tabIndex < this.tabs.length - 1) {
|
if (tabIndex < this.tabs.length - 1) {
|
||||||
this.swapTabs(this._activeTab, this.tabs[tabIndex + 1])
|
this.swapTabs(this._activeTab, this.tabs[tabIndex + 1])
|
||||||
} else if (this.config.store.appearance.cycleTabs) {
|
} else if (this.config.store.appearance.cycleTabs) {
|
||||||
this.swapTabs(this._activeTab, this.tabs[0])
|
this.tabs.unshift(this.tabs.pop()!)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue