Skip to content

Commit

Permalink
fix: move show shortcut panel to mainwindow
Browse files Browse the repository at this point in the history
as title.
Enable pop-up shortcut panel on main window.

Log: Fix shortcut issue.
Bug: https://pms.uniontech.com/bug-view-273543.html
  • Loading branch information
rb-union committed Sep 13, 2024
1 parent b48a468 commit 9dc6a5f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/qml/ImageViewer.qml
Original file line number Diff line number Diff line change
Expand Up @@ -274,15 +274,6 @@ Item {
}
}

Shortcut {
sequence: "Ctrl+Shift+/"

onActivated: {
var screenPos = mapToGlobal(parent.x, parent.y);
IV.FileControl.showShortcutPanel(screenPos.x + parent.Window.width / 2, screenPos.y + parent.Window.height / 2);
}
}

// 图片滑动视图的上层组件
Control {
id: viewBackground
Expand Down
10 changes: 10 additions & 0 deletions src/qml/MainStack.qml
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,14 @@ Item {
}
}
}

// show shortcut panel
Shortcut {
sequence: "Ctrl+Shift+/"

onActivated: {
var screenPos = mapToGlobal(parent.x, parent.y);
IV.FileControl.showShortcutPanel(screenPos.x + parent.Window.width / 2, screenPos.y + parent.Window.height / 2);
}
}
}

0 comments on commit 9dc6a5f

Please sign in to comment.