fix(event): Remove command + arrow right navigation
之前就是因为 command + left 和 right 会导致错误地跳转,才将其转换为 command + [ 和 command + ] 跳转的
This commit is contained in:
2
src-tauri/src/inject/event.js
vendored
2
src-tauri/src/inject/event.js
vendored
@@ -1,8 +1,6 @@
|
|||||||
const shortcuts = {
|
const shortcuts = {
|
||||||
ArrowUp: () => scrollTo(0, 0),
|
ArrowUp: () => scrollTo(0, 0),
|
||||||
ArrowDown: () => scrollTo(0, document.body.scrollHeight),
|
ArrowDown: () => scrollTo(0, document.body.scrollHeight),
|
||||||
ArrowLeft: () => window.history.back(),
|
|
||||||
ArrowRight: () => window.history.forward(),
|
|
||||||
'[': () => window.history.back(),
|
'[': () => window.history.back(),
|
||||||
']': () => window.history.forward(),
|
']': () => window.history.forward(),
|
||||||
r: () => window.location.reload(),
|
r: () => window.location.reload(),
|
||||||
|
|||||||
Reference in New Issue
Block a user