Added ability to open last tab with Ctrl+9. (Chromium behaviour.)

- Fixed #1106.
This commit is contained in:
23rd
2019-08-04 17:22:48 +03:00
parent c578cd47e1
commit 838fd6bab6
3 changed files with 13 additions and 1 deletions
+11
View File
@@ -256,6 +256,17 @@ void Notebook::selectPreviousTab()
this->select(this->items_[index].page);
}
void Notebook::selectLastTab()
{
const auto size = this->items_.size();
if (size <= 1)
{
return;
}
this->select(this->items_[size - 1].page);
}
int Notebook::getPageCount() const
{
return this->items_.count();