From 27da29525a8e73abf0eebf495f258bbdc39ddcc1 Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Fri, 4 May 2012 09:53:36 +0200 Subject: Made the global settings icon accessable via keyboard. Bug http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-561 --- core/js/js.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'core/js/js.js') 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(); -- cgit v1.2.3