From fd2b58d96d5c5bed438f855227949690afbfa95f Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Wed, 20 Feb 2019 10:59:05 -0800 Subject: [PATCH] made main "add files" area keyboard navible --- app/ui/archiveTile.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/app/ui/archiveTile.js b/app/ui/archiveTile.js index d8720a93..ead9ce06 100644 --- a/app/ui/archiveTile.js +++ b/app/ui/archiveTile.js @@ -374,14 +374,16 @@ module.exports.empty = function(state, emit) { > ${state.translate('uploadDropDragMessage')} -
+
${state.translate('uploadDropClickMessage')}
@@ -396,6 +398,14 @@ module.exports.empty = function(state, emit) { `; + function focus(event) { + event.target.nextElementSibling.classList.add('bg-blue-darker'); + } + + function blur(event) { + event.target.nextElementSibling.classList.remove('bg-blue-darker'); + } + function add(event) { event.preventDefault(); const newFiles = Array.from(event.target.files);