mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix: allow open in new window with shift in macOS
This commit is contained in:
parent
0de422ffb7
commit
2a5c9725e8
1 changed files with 1 additions and 1 deletions
|
|
@ -195,7 +195,7 @@ export function createPromiseQueue() {
|
|||
|
||||
export function isOpenInNewWindowClick(event: React.MouseEvent<HTMLElement, MouseEvent>) {
|
||||
return (
|
||||
(os === OperatingSystems.macOS && event.metaKey) ||
|
||||
(os === OperatingSystems.macOS && (event.metaKey || event.shiftKey)) ||
|
||||
(os === OperatingSystems.Linux && event.ctrlKey) ||
|
||||
(os === OperatingSystems.Windows && event.ctrlKey)
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue