Vanessa 2025-11-22 23:14:49 +08:00
parent f52a7b703f
commit ce9ef11af6
2 changed files with 8 additions and 4 deletions

View file

@ -105,7 +105,8 @@ export const searchKeydown = (app: App, event: KeyboardEvent) => {
id, id,
position: "right", position: "right",
action: [...action, Constants.CB_GET_HL], action: [...action, Constants.CB_GET_HL],
zoomIn zoomIn,
scrollPosition: "center"
}); });
if (dialog) { if (dialog) {
dialog.destroy({focus: "false"}); dialog.destroy({focus: "false"});
@ -226,7 +227,8 @@ export const searchKeydown = (app: App, event: KeyboardEvent) => {
app, app,
id, id,
action: [...action, Constants.CB_GET_HL], action: [...action, Constants.CB_GET_HL],
zoomIn zoomIn,
scrollPosition: "center"
}); });
if (dialog) { if (dialog) {
dialog.destroy({focus: "false"}); dialog.destroy({focus: "false"});

View file

@ -821,7 +821,8 @@ export const genSearch = (app: App, config: Config.IUILayoutTabSearchConfig, ele
id, id,
action: [...action, Constants.CB_GET_HL], action: [...action, Constants.CB_GET_HL],
zoomIn, zoomIn,
position: "right" position: "right",
scrollPosition: "center"
}); });
if (closeCB) { if (closeCB) {
closeCB(); closeCB();
@ -860,7 +861,8 @@ export const genSearch = (app: App, config: Config.IUILayoutTabSearchConfig, ele
app, app,
id, id,
action: [...action, Constants.CB_GET_HL], action: [...action, Constants.CB_GET_HL],
zoomIn zoomIn,
scrollPosition: "center"
}); });
if (closeCB) { if (closeCB) {
closeCB(); closeCB();