Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 32e3427

Browse files
committed
update
1 parent f3e131d commit 32e3427

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/packages/ohyeah/ohyeah.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,10 +314,10 @@ export default {
314314
315315
// 键盘按下
316316
onKeyDown(e) {
317-
//e.preventDefault();
318317
if (/^(INPUT)|(TEXTAREA)|SELECT/.test(document.activeElement.nodeName)) {
319318
return;
320319
}
320+
e.preventDefault(); // 需要这个,不然外部原生滚动条也会跟着滚动
321321
e.stopImmediatePropagation();
322322
// 只监听4个方向键
323323
// 已按下

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /