mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
This commit is contained in:
parent
aab0a269de
commit
9d27198c70
4 changed files with 13 additions and 7 deletions
|
|
@ -74,7 +74,7 @@ export const getEventName = () => {
|
|||
};
|
||||
|
||||
// 区别 mac 上的 ctrl 和 meta
|
||||
export const isCtrl = (event: KeyboardEvent) => {
|
||||
export const isCtrl = (event: KeyboardEvent | MouseEvent) => {
|
||||
if (isMac()) {
|
||||
// mac
|
||||
if (event.metaKey && !event.ctrlKey) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue