Skip to content

Commit

Permalink
[TASK] Make file replace file input accessible with keyboard
Browse files Browse the repository at this point in the history
This patch makes the browse button on the file input field
for the file replace dialog in the filelist module reachable
via keyboard.

Resolves: #102408
Releases: main, 12.4
Change-Id: I8f69d08c478d4b0966f6122133d75c454333545e
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/81785
Tested-by: core-ci <typo3@b13.com>
Reviewed-by: Oliver Bartsch <bo@cedev.de>
Tested-by: Oliver Bartsch <bo@cedev.de>
  • Loading branch information
whmyr authored and o-ba committed Nov 21, 2023
1 parent dff5e46 commit ba9565f
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -21,9 +21,9 @@ <h1><f:translate key="LLL:EXT:filelist/Resources/Private/Language/locallang.xlf:
<label class="form-label" for="file_replace"><f:translate key="LLL:EXT:filelist/Resources/Private/Language/locallang.xlf:file_replace.php.selectfile" /></label>
<div class="input-group col-6">
<input type="text" name="fakefile" id="fakefile" class="form-control input-xlarge" readonly>
<a class="input-group-addon btn btn-primary" data-filelist-click-target="#file_replace">
<button type="button" class="input-group-addon btn btn-primary" data-filelist-click-target="#file_replace">
<f:translate key="LLL:EXT:filelist/Resources/Private/Language/locallang.xlf:file_replace.php.browse" />
</a>
</button>
</div>
<input class="form-control" type="file" id="file_replace" data-filelist-change-target="#fakefile" name="replace_1" style="visibility: hidden;" />
</div>
Expand Down

0 comments on commit ba9565f

Please sign in to comment.