dateMenu: Include "Today" button in keynav
https://bugzilla.gnome.org/show_bug.cgi?id=706903
This commit is contained in:
parent
5a47ad837b
commit
be52ad999f
@ -37,6 +37,7 @@ const TodayButton = new Lang.Class({
|
|||||||
// until the selected date changes.
|
// until the selected date changes.
|
||||||
this.actor = new St.Button({ style_class: 'datemenu-today-button',
|
this.actor = new St.Button({ style_class: 'datemenu-today-button',
|
||||||
x_align: St.Align.START,
|
x_align: St.Align.START,
|
||||||
|
can_focus: true,
|
||||||
reactive: false
|
reactive: false
|
||||||
});
|
});
|
||||||
this.actor.connect('clicked', Lang.bind(this,
|
this.actor.connect('clicked', Lang.bind(this,
|
||||||
@ -59,7 +60,7 @@ const TodayButton = new Lang.Class({
|
|||||||
function(calendar, date) {
|
function(calendar, date) {
|
||||||
// Make the button reactive only if the selected date is not the
|
// Make the button reactive only if the selected date is not the
|
||||||
// current date.
|
// current date.
|
||||||
this.actor.can_focus = this.actor.reactive = !_isToday(date)
|
this.actor.reactive = !_isToday(date)
|
||||||
}));
|
}));
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user