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

Shortcuts to switch perspective are not working #3779 #3979

Merged
merged 1 commit into from
May 25, 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
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,12 @@ private boolean handleKey(Object parentObject, KeyEvent event, KeyboardShortcut
}
}
// If this is attached to a perspective, and it's not active, bail out.
// Except if it's shortcut to activate perspective
if (parentObject instanceof IHopPerspective) {
IHopPerspective perspective = (IHopPerspective) parentObject;
try {
if (!perspective.isActive()) {
// TODO: It's not the best way to check with the method name, but it works for now.
if (!perspective.isActive() && !shortcut.getParentMethodName().equals("activate")) {
return false;
}
} catch (Exception ex) {
Expand Down
Loading