Changing tab switch shortcuts in LiteIDE

If you’re using LiteIde for golang development you may see that shortcuts for tab change (Ctrl+Tab and Ctrl+Shift+Tab) can’t be changed via settings. For somebody (like me) it’s a big usability problem – I have Ctrl+PgUp and Ctrl+PgDown in all other applications.

But small change of code and recompilation helps as allways :)

--- a/liteidex/src/liteapp/editormanager.cpp
+++ b/liteidex/src/liteapp/editormanager.cpp
@@ -270,9 +270,9 @@ bool EditorManager::eventFilter(QObject *target, QEvent *event)
     if (event->type() == QEvent::KeyPress) {
         QKeyEvent *e = static_cast<QKeyEvent*>(event);
         if ( (e->modifiers() & Qt::CTRL) &&
-             ( e->key() == Qt::Key_Tab || e->key() == Qt::Key_Backtab) ) {
+             ( e->key() == Qt::Key_PageUp || e->key() == Qt::Key_PageDown) ) {
             int index = m_editorTabWidget->tabBar()->currentIndex();
-            if (e->key() == Qt::Key_Tab) {
+            if (e->key() == Qt::Key_PageDown) {
                 index++;
                 if (index >= m_editorTabWidget->tabBar()->count()) {
                     index = 0;

P.S.: On the one hand i like Linux that i’m able to change anything to satisfy my needs… but on the other hand i’m starting to hate hours spend with configuring system, rebuilding applications and so on to get something that i could get immediately for example by choosing OS X…