volume.js: make slider menu items activatable
Keeping the volume menu open after setting the desired volume isn't that useful and forces a second click (or an Esc press) to dismiss it. Allow for the sliders to be used with a single click-hold-move-release. https://bugzilla.gnome.org/show_bug.cgi?id=649586
This commit is contained in:
@ -482,8 +482,8 @@ function PopupSliderMenuItem() {
|
||||
PopupSliderMenuItem.prototype = {
|
||||
__proto__: PopupBaseMenuItem.prototype,
|
||||
|
||||
_init: function(value) {
|
||||
PopupBaseMenuItem.prototype._init.call(this, { activate: false });
|
||||
_init: function(value, params) {
|
||||
PopupBaseMenuItem.prototype._init.call(this, params ? params : { activate: false });
|
||||
|
||||
this.actor.connect('key-press-event', Lang.bind(this, this._onKeyPressEvent));
|
||||
|
||||
|
Reference in New Issue
Block a user