[gnome-shell] screenShield: Move opening of screen shield to key press
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] screenShield: Move opening of screen shield to key press
- Date: Mon, 11 Mar 2013 19:08:33 +0000 (UTC)
commit dde20f0c7699e96f54bfc707e3ebad1833eccd75
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Mar 11 14:26:18 2013 -0400
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
js/ui/screenShield.js | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js
index 57d5ac5..e01d181 100644
--- a/js/ui/screenShield.js
+++ b/js/ui/screenShield.js
@@ -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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]