Fix #2082: respect leavegithubalone everywhere except ignore

This commit is contained in:
Oliver Blanthorn 2026-07-23 12:59:12 +02:00
parent b40b78c8f6
commit 5887493a8d
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -515,7 +515,7 @@ function protectSlash(e) {
const key = keyseq.minimalKeyFromKeyboardEvent(e)
if (
protectedKeys.some(mapstr => keyseq.mapstrMatchesKey(mapstr, key)) &&
contentState.mode === "normal"
contentState.mode !== "ignore"
) {
e.cancelBubble = true
e.stopImmediatePropagation()