bsaleil / todolist-gnome-shell-extension

Simple todo list extension for gnome-shell
GNU General Public License v3.0
62 stars 44 forks source link

The extension will grab mouse and do not release for ever. #23

Closed linkycj closed 9 years ago

linkycj commented 11 years ago

I got the newest version code to test. When I removed all task, and want to add new task, the mouse had been grabbed. Other gnome application could not recieve the mouse event. After comment the follow lines, everything is ok.

                /*
                // Add keybinding
                global.display.add_keybinding
                (
                        key_open,
                        mySettings,
                        Meta.KeyBindingFlags.NONE,
                        Lang.bind(this, function() { this.menu.open(); })
                );

                // Auto focus
                this.menu.connect('open-state-changed', Lang.bind(this, function(menu, open)
                {
                        if (open) { this.newTask.grab_key_focus(); }
                        else { this.newTask.get_stage().set_key_focus(null); }
                }));
                */
bsaleil commented 9 years ago

Sorry for the late answer but it should be fixed now.