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

View file

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