mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
screenShield: Move opening of screen shield to key press
This makes the screen shield much more responsive. https://bugzilla.gnome.org/show_bug.cgi?id=686740
This commit is contained in:
parent
ddced79475
commit
dde20f0c76
1 changed files with 3 additions and 3 deletions
|
|
@ -435,8 +435,8 @@ const ScreenShield = new Lang.Class({
|
|||
name: 'lockScreenGroup',
|
||||
visible: false,
|
||||
});
|
||||
this._lockScreenGroup.connect('key-release-event',
|
||||
Lang.bind(this, this._onLockScreenKeyRelease));
|
||||
this._lockScreenGroup.connect('key-press-event',
|
||||
Lang.bind(this, this._onLockScreenKeyPress));
|
||||
this._lockScreenGroup.connect('scroll-event',
|
||||
Lang.bind(this, this._onLockScreenScroll));
|
||||
Main.ctrlAltTabManager.addGroup(this._lockScreenGroup, _("Lock"), 'changes-prevent-symbolic');
|
||||
|
|
@ -590,7 +590,7 @@ const ScreenShield = new Lang.Class({
|
|||
return this._isModal;
|
||||
},
|
||||
|
||||
_onLockScreenKeyRelease: function(actor, event) {
|
||||
_onLockScreenKeyPress: function(actor, event) {
|
||||
let symbol = event.get_key_symbol();
|
||||
|
||||
// Do nothing if the lock screen is not fully shown.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue