summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-05-04 09:53:36 +0200
committerThomas Tanghus <thomas@tanghus.net>2012-05-04 09:53:36 +0200
commit27da29525a8e73abf0eebf495f258bbdc39ddcc1 (patch)
tree80cb4a0e531cb0e5a4123cd2a91a5e32bc9c252d /core/js
parent8d1754041ed4e6b82d8a08e63a7d002cdf3480c8 (diff)
downloadnextcloud-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
Diffstat (limited to 'core/js')
-rw-r--r--core/js/js.js5
1 files changed, 5 insertions, 0 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();