diff options
author | arv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-16 23:59:22 +0000 |
---|---|---|
committer | arv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-16 23:59:22 +0000 |
commit | 31972206cf05603b2a2790a39c6c616cf248de39 (patch) | |
tree | 509c9e7d86d6107bb3f6199c3d69bba18bb20ebb /chrome/browser | |
parent | 926c41c911f745cadd28998ab36efd7123c15a37 (diff) | |
download | chromium_src-31972206cf05603b2a2790a39c6c616cf248de39.zip chromium_src-31972206cf05603b2a2790a39c6c616cf248de39.tar.gz chromium_src-31972206cf05603b2a2790a39c6c616cf248de39.tar.bz2 |
NTP: Fix issue with keyboard navigation of the context menu
We need to use the hidden property/attribute to get keyboard navigation working.
This regressed in r66954
BUG=None
TEST=On NTP
Right click one of the Apps
Press down/up keys it should select the next/previous menu item.
Review URL: http://codereview.chromium.org/6528026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75205 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/resources/ntp/apps.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/chrome/browser/resources/ntp/apps.js b/chrome/browser/resources/ntp/apps.js index eba94bf..39ef895 100644 --- a/chrome/browser/resources/ntp/apps.js +++ b/chrome/browser/resources/ntp/apps.js @@ -24,13 +24,12 @@ function getAppsCallback(data) { // Hide menu options that are not supported on the OS or windowing system. // The "Launch as Window" menu option. - $('apps-launch-type-window-menu-item').style.display = - (data.disableAppWindowLaunch ? 'none' : 'inline'); + $('apps-launch-type-window-menu-item').hidden = data.disableAppWindowLaunch; // The "Create App Shortcut" menu option. - $('apps-create-shortcut-command-menu-item').style.display = - $('apps-create-shortcut-command-separator').style.display = - (data.disableCreateAppShortcut ? 'none' : ''); + $('apps-create-shortcut-command-menu-item').hidden = + $('apps-create-shortcut-command-separator').hidden = + data.disableCreateAppShortcut; appsMiniview.textContent = ''; appsSectionContent.textContent = ''; |