Skip to content

Commit

Permalink
switchFocus: fix it can not focus a monaco editor
Browse files Browse the repository at this point in the history
  • Loading branch information
gdh1995 committed Apr 6, 2024
1 parent 84f40db commit dd21f8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion content/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,8 @@ set_contentCommands_([
set_is_last_mutable(1)
getZoom_(newEl);
prepareCrop_();
let flash = options.flash, p = select_(newEl, null, flash, selAction, true)
const rect1 = getVisibleClientRect_(newEl) || padClientRect_(getBoundingClientRect_(newEl), 3)
let flash = options.flash, p = select_(newEl, rect1, flash, selAction, true)
flash || p.then((): void => {
prepareCrop_();
const rect = getVisibleClientRect_(newEl!)
Expand Down
1 change: 0 additions & 1 deletion content/omni.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,6 @@ const refreshKeyHandler = (): void => {
send_(kFgReq.parseSearchUrl, { t: options.s, p: upper, u: url }
, ((options2: FullOptions, search: ParsedSearch | null): void => {
options2.p = search
if (search != null) { options2.url = ""; }
status > Status.Initing ? postToOmni(options2 as VomnibarNS.FgOptions as VomnibarNS.FgOptionsToFront)
: (omniOptions = options2 as VomnibarNS.FgOptions as VomnibarNS.FgOptionsToFront)
}).bind(0, options))
Expand Down

0 comments on commit dd21f8e

Please sign in to comment.