Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fixed an issue where Ctrl + Tab could not be used to toggle open files #901

Merged
merged 1 commit into from
Sep 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/plugins/codeeditor/gui/workspacewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@

// add/del comment
QAction *commentAction = new QAction(tr("Add/Delete Comment"), q);
auto cmd = ActionManager::instance()->registerAction(commentAction, "TextEditor.AddAndRemoveComment");
auto cmd = ActionManager::instance()->registerAction(commentAction, "TextEditor.AddAndRemoveComment", { TextEditorContext });

Check warning on line 71 in src/plugins/codeeditor/gui/workspacewidget.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Local variable 'cmd' shadows outer variable

Check warning on line 71 in src/plugins/codeeditor/gui/workspacewidget.cpp

View workflow job for this annotation

GitHub Actions / static-check / Call-CppCheck

Local variable 'cmd' shadows outer variable
cmd->setDefaultKeySequence(Qt::CTRL | Qt::Key_Slash);
connect(commentAction, &QAction::triggered, this, &WorkspaceWidgetPrivate::handleSetComment);

// show opened files
QAction *showOpenedAction = new QAction(tr("Show opened files"), q);
cmd = ActionManager::instance()->registerAction(showOpenedAction, "TextEditor.ShowOpenedFiles");
cmd = ActionManager::instance()->registerAction(showOpenedAction, "TextEditor.ShowOpenedFiles", { TextEditorContext });
cmd->setDefaultKeySequence(Qt::CTRL | Qt::Key_Tab);
connect(showOpenedAction, &QAction::triggered, this, &WorkspaceWidgetPrivate::handleShowOpenedFiles);

Expand Down
Loading