summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/js/apps.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/js/apps.js b/core/js/apps.js
index a2d3460c907..3b94aa1d87e 100644
--- a/core/js/apps.js
+++ b/core/js/apps.js
@@ -79,6 +79,10 @@
area.slideDown(OC.menuSpeed*4, function() {
area.trigger(new $.Event('show'));
});
+ var input = $(areaSelector + ' [autofocus]');
+ if (input.length === 1) {
+ input.focus();
+ }
}
// do nothing if the area is animated