diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-05-04 09:53:36 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-05-04 09:53:36 +0200 |
commit | 27da29525a8e73abf0eebf495f258bbdc39ddcc1 (patch) | |
tree | 80cb4a0e531cb0e5a4123cd2a91a5e32bc9c252d | |
parent | 8d1754041ed4e6b82d8a08e63a7d002cdf3480c8 (diff) | |
download | nextcloud-server-27da29525a8e73abf0eebf495f258bbdc39ddcc1.tar.gz nextcloud-server-27da29525a8e73abf0eebf495f258bbdc39ddcc1.zip |
Made the global settings icon accessable via keyboard.
Bug http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-561
-rw-r--r-- | core/js/js.js | 5 | ||||
-rw-r--r-- | core/templates/layout.user.php | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/core/js/js.js b/core/js/js.js index f697f2b8537..7585d4b09d1 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -419,6 +419,11 @@ $(document).ready(function(){ } }); + $('#settings #expand').keydown(function(event) { + if (event.which == 13 || event.which == 32) { + $('#expand').click() + } + }); $('#settings #expand').click(function(event) { $('#settings #expanddiv').slideToggle(); event.stopPropagation(); diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php index 674b1853037..b832ac2636f 100644 --- a/core/templates/layout.user.php +++ b/core/templates/layout.user.php @@ -44,7 +44,7 @@ </ul> <ul id="settings" class="svg"> - <img id="expand" class="svg" alt="<?php echo $l->t('Settings');?>" src="<?php echo image_path('', 'actions/settings.svg'); ?>" /> + <img role=button tabindex=0 id="expand" class="svg" alt="<?php echo $l->t('Settings');?>" src="<?php echo image_path('', 'actions/settings.svg'); ?>" /> <span><?php echo $l->t('Settings');?></span> <div id="expanddiv" <?php if($_['bodyid'] == 'body-user') echo 'style="display:none;"'; ?>> <?php foreach($_['settingsnavigation'] as $entry):?> |