From df848fdb4da9f6a976189c7536f203610d35ccb8 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Tue, 15 Feb 2011 17:10:35 -0500 Subject: [PATCH] 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 file changed, 2 insertions(+) diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js index 6dee534b6..ad2c112ef 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