Comment 12 for bug 1287361

Revision history for this message
Bartosz Kosiorek (gang65) wrote : Re: add support for keyboard shortcuts

I have added most needed shortcuts:
* Ctrl + L: Select the content in the address bar
* Ctrl + T: Open new Tab
* Ctrl + W: Close current Tab
* Ctrl + Tab: Navigate between tabs
* Ctrl + R: Reload current Tab
* Ctrl + D: Bookmark current Tab
* Ctrl + H: Show History
* Shift + Backspace: Goes to the next page in history
* Backspace: Goes to the previous page in history
* Alt + Left Arrow: Goes to the previous page in history
* Alt + Right Arrow: Goes to the next page in history
* Alt + D: Select the content in the address bar

Unfortunately it is impossible to implement switching to the next tab, without reimplementation tabs-model.cpp.
I think we could consider to use following private fields:
   QList<QObject*> m_tabs; //store all tabs data
   int current_tab_index; //store current tab index.

What do you think about such implementation?
It will simplify implementation and allow easily switching between tabs.