[gnome-shell] dateMenu: make the menu un-key-navigable



commit df848fdb4da9f6a976189c7536f203610d35ccb8
Author: Dan Winship <danw gnome org>
Date:   Tue Feb 15 17:10:35 2011 -0500

    dateMenu: make the menu un-key-navigable
    
    It already doesn't work right, because the PanelMenuButton code
    assumes that Left and Right won't be used as part of keynav within a
    menu. And the gnome-panel calendar isn't keyboard accessible either,
    so this isn't a regression. To be fixed later.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=641253

 js/ui/dateMenu.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js
index 6dee534..ad2c112 100644
--- a/js/ui/dateMenu.js
+++ b/js/ui/dateMenu.js
@@ -90,6 +90,7 @@ DateMenuButton.prototype = {
         vbox.add(item.actor, {y_align: St.Align.END, expand: true, y_fill: false});
         item = new PopupMenu.PopupMenuItem(_("Date and Time Settings"));
         item.connect('activate', Lang.bind(this, this._onPreferencesActivate));
+        item.actor.can_focus = false;
         vbox.add(item.actor);
 
         // Add vertical separator
@@ -109,6 +110,7 @@ DateMenuButton.prototype = {
 
         item = new PopupMenu.PopupMenuItem(_("Open Calendar"));
         item.connect('activate', Lang.bind(this, this._onOpenCalendarActivate));
+        item.actor.can_focus = false;
         vbox.add(item.actor, {y_align: St.Align.END, expand: true, y_fill: false});
 
         // Whenever the menu is opened, select today



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]