⚡ ags(apps-window): remove unnecessary gtkeventbox
This commit is contained in:
@@ -134,19 +134,6 @@ export const AppsWindow = (mon: number): (Widget.Window) => {
|
||||
!entry.isFocus && entry.grab_focus_without_selecting();
|
||||
}
|
||||
},
|
||||
child: new Widget.EventBox({
|
||||
onClick: () => {
|
||||
searchString.set("");
|
||||
entry.text = "";
|
||||
window.close();
|
||||
},
|
||||
onKeyPressEvent: (_, event: Gdk.Event) => {
|
||||
if(event.get_keyval()[1] === Gdk.KEY_Escape) {
|
||||
searchString.set("");
|
||||
entry.text = "";
|
||||
window.close();
|
||||
}
|
||||
},
|
||||
child: new Widget.Box({
|
||||
className: "apps-window-container",
|
||||
expand: true,
|
||||
@@ -165,7 +152,6 @@ export const AppsWindow = (mon: number): (Widget.Window) => {
|
||||
} as Widget.BoxProps)
|
||||
]
|
||||
} as Widget.BoxProps)
|
||||
} as Widget.EventBoxProps),
|
||||
});
|
||||
|
||||
const connId = window.connect("focus-in-event", (_) => {
|
||||
|
||||
Reference in New Issue
Block a user