[gnome-shell/wip/carlosg/grabs-pt2: 4/14] modalDialog: Make reactive




commit 87491c296cc5bb1565209c74897b5fcb3527756c
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Nov 18 00:03:08 2021 +0100

    modalDialog: Make reactive
    
    Some dialogs like the runDialog expect this actor to receive
    key events while it is not reactive. Whatever that black magic was
    it will no longer work.
    
    Make the actor reactive, so it can simply handle key events.

 js/ui/modalDialog.js | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/js/ui/modalDialog.js b/js/ui/modalDialog.js
index caa874454f..c6d1d5ac4b 100644
--- a/js/ui/modalDialog.js
+++ b/js/ui/modalDialog.js
@@ -32,6 +32,7 @@ var ModalDialog = GObject.registerClass({
 }, class ModalDialog extends St.Widget {
     _init(params) {
         super._init({ visible: false,
+                      reactive: true,
                       x: 0,
                       y: 0,
                       accessible_role: Atk.Role.DIALOG });


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]