Skip to content

@keydown 按键事件问题 #7577

Answered by t1000ln
t1000ln asked this question in Help/Questions
Discussion options

You must be logged in to vote

自己解决,也算是个办法吧!

const commentLine = (e: KeyboardEvent | Event) => {
  if (e instanceof KeyboardEvent && (e as KeyboardEvent).shiftKey) {
    return;
  }
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by t1000ln
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant