Skip to content

Commit

Permalink
noop
Browse files Browse the repository at this point in the history
  • Loading branch information
gdh1995 committed Dec 10, 2023
1 parent ad0bfe3 commit 2a16da3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions content/mode_find.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,12 @@ export const activate = (options: CmdOptions[kFgCmd.findMode]): void => {
}
}
const postActivate = (): void => {
const postExit = (skip?: boolean | Event): void => {
const postExit = (skip?: Event | void): void => {
// safe if destroyed, because `el.onblur = Exit`
if (skip && skip !== !!skip
&& (!OnChrome || Build.MinCVer >= BrowserVer.Min$Event$$IsTrusted
if (skip && (!OnChrome || Build.MinCVer >= BrowserVer.Min$Event$$IsTrusted
? !skip.isTrusted : skip.isTrusted === false)) { return }
postLock && setupEventListener(postLock, BU, postExit, 1)
if (!postLock || skip === true) { return }
if (!postLock) { return }
postLock = null
setupEventListener(0, CLK, postExit, 1)
removeHandler_(kHandler.postFind)
Expand All @@ -164,11 +163,12 @@ export const activate = (options: CmdOptions[kFgCmd.findMode]): void => {
if (!el) { postExit(); return }
whenNextIsEsc_(kHandler.postFind, kModeId.Find, postExit)
if (el === postLock) { return }
if (!postLock) {
if (postLock) {
setupEventListener(postLock, BU, postExit, 1)
} else {
setupEventListener(0, CLK, postExit)
setupSuppress(postExit)
}
postExit(true)
postLock = el
setupEventListener(el, BU, postExit)
}
Expand Down

0 comments on commit 2a16da3

Please sign in to comment.