overview & cheatsheet: fix window focus after open/close layer with kb (#502)

This commit is contained in:
end-4
2024-05-18 15:23:48 +07:00
parent 8955fcab2b
commit ecfacef55f
4 changed files with 66 additions and 26 deletions
+12 -2
View File
@@ -1,18 +1,28 @@
import Widget from 'resource:///com/github/Aylur/ags/widget.js';
import { SearchAndWindows } from "./windowcontent.js";
import PopupWindow from '../.widgethacks/popupwindow.js';
import { clickCloseRegion } from '../.commonwidgets/clickcloseregion.js';
export default (id = '') => PopupWindow({
name: `overview${id}`,
// exclusivity: 'ignore',
keymode: 'on-demand',
visible: false,
anchor: ['top'],
anchor: ['top', 'bottom', 'left', 'right'],
layer: 'overlay',
child: Widget.Box({
vertical: true,
children: [
SearchAndWindows(),
clickCloseRegion({ name: 'overview', multimonitor: false, expand: false }),
Widget.Box({
children: [
clickCloseRegion({ name: 'overview', multimonitor: false }),
SearchAndWindows(),
clickCloseRegion({ name: 'overview', multimonitor: false }),
]
}),
clickCloseRegion({ name: 'overview', multimonitor: false }),
]
}),
})