mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 17:41:40 -05:00
Prevent page info from opening with editor
This commit is contained in:
parent
5f7b411a4d
commit
159393de71
1 changed files with 5 additions and 1 deletions
|
@ -59,7 +59,7 @@ function modeSpecificSuppression(ke: KeyboardEvent) {
|
|||
}
|
||||
break
|
||||
case "input":
|
||||
if (ke.key === "Tab") {
|
||||
if (ke.key === "Tab" || (ke.ctrlKey === true && ke.key === "i")) {
|
||||
ke.preventDefault()
|
||||
ke.stopImmediatePropagation()
|
||||
}
|
||||
|
@ -67,6 +67,10 @@ function modeSpecificSuppression(ke: KeyboardEvent) {
|
|||
case "ignore":
|
||||
break
|
||||
case "insert":
|
||||
if (ke.ctrlKey === true && ke.key === "i") {
|
||||
ke.preventDefault()
|
||||
ke.stopImmediatePropagation()
|
||||
}
|
||||
break
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue