From 27da29525a8e73abf0eebf495f258bbdc39ddcc1 Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Fri, 4 May 2012 09:53:36 +0200 Subject: [PATCH] Made the global settings icon accessable via keyboard. Bug http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-561 --- core/js/js.js | 5 +++++ core/templates/layout.user.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/core/js/js.js b/core/js/js.js index f697f2b853..7585d4b09d 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 674b185303..b832ac2636 100644 --- a/core/templates/layout.user.php +++ b/core/templates/layout.user.php @@ -44,7 +44,7 @@