LiteIDE

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.