[TASK] Clear search field in Install Tool with ESC 86/51486/2
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 12:27:03 +0000 (13:27 +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/51486
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Thomas Hohn <thomas@hohn.dk>
Tested-by: Thomas Hohn <thomas@hohn.dk>
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 5fc32b5..672086b 100644 (file)
@@ -577,6 +577,9 @@ $(function() {
                                                $configSearch.focus();
                                                break;
                                }
+                       } else if (event.keyCode === 27) {
+                               event.preventDefault();
+                               $configSearch.val('').focus();
                        }
                });
        }