Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2022-08-26 22:17:14 +0300
committerJulius Härtl <jus@bitgrid.net>2022-09-01 15:15:39 +0300
commit702b0cccd6f0d7c44a8199154d738beeb3a34086 (patch)
tree08fca26ac26dad56df32230cf95dea9ac8156eaa /apps/files
parentac736b2f82adfe73176fa78620e617ff17dbc91e (diff)
Make scroll areas keyboard focussable
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/src/sidebar.js2
-rw-r--r--apps/files/templates/appnavigation.php2
-rw-r--r--apps/files/templates/index.php2
3 files changed, 4 insertions, 2 deletions
diff --git a/apps/files/src/sidebar.js b/apps/files/src/sidebar.js
index 58b798ed0e7..22c1b95d1b2 100644
--- a/apps/files/src/sidebar.js
+++ b/apps/files/src/sidebar.js
@@ -52,6 +52,8 @@ window.addEventListener('DOMContentLoaded', function() {
}
}
+ document.getElementById('app-sidebar').tabIndex = 0
+
// Init vue app
const View = Vue.extend(SidebarView)
const AppSidebar = new View({
diff --git a/apps/files/templates/appnavigation.php b/apps/files/templates/appnavigation.php
index 91fdfa32b10..5684c3d0d32 100644
--- a/apps/files/templates/appnavigation.php
+++ b/apps/files/templates/appnavigation.php
@@ -1,5 +1,5 @@
<div id="app-navigation" role="navigation">
- <ul class="with-icon">
+ <ul class="with-icon" tabindex="0">
<?php
diff --git a/apps/files/templates/index.php b/apps/files/templates/index.php
index e12d9fafab3..016e6f32c70 100644
--- a/apps/files/templates/index.php
+++ b/apps/files/templates/index.php
@@ -1,6 +1,6 @@
<?php /** @var \OCP\IL10N $l */ ?>
<?php $_['appNavigation']->printPage(); ?>
-<div id="app-content">
+<div id="app-content" tabindex="0">
<input type="checkbox" class="hidden-visually" id="showgridview"
aria-label="<?php p($l->t('Toggle grid view'))?>"