[TASK] Clear search field in Install Tool with ESC 84/51484/6
authorGeorg Ringer <georg.ringer@gmail.com>
Tue, 31 Jan 2017 10:33:30 +0000 (11:33 +0100)
committerPhilipp Gampe <philipp.gampe@typo3.org>
Tue, 31 Jan 2017 11:19:13 +0000 (12:19 +0100)
As the search in the Install Tool > All configuration can be
triggered by using CTRL + f, it should also listen on the
ESC key to clear the search again.

Resolves: #79567
Releases: master, 7.6
Change-Id: I9a304bb455153429f99354a4ef684326b1baa612
Reviewed-on: https://review.typo3.org/51484
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Marco Huber <mail@marco-huber.de>
Tested-by: Marco Huber <mail@marco-huber.de>
Reviewed-by: Philipp Gampe <philipp.gampe@typo3.org>
Tested-by: Philipp Gampe <philipp.gampe@typo3.org>
typo3/sysext/install/Resources/Public/JavaScript/Install.js

index aaedfd0..4d6fa81 100644 (file)
@@ -732,6 +732,9 @@ $(function() {
                                                $configSearch.focus();
                                                break;
                                }
+                       } else if (event.keyCode === 27) {
+                               event.preventDefault();
+                               $configSearch.val('').focus();
                        }
                });
        }