[epiphany] ephy: Close password completion dialog also on Tab and Escape



commit 7050df3e2d64c6f37dd13716c28ee7718f7203f6
Author: Jan-Michael Brummer <jan brummer tabos org>
Date:   Tue Sep 1 18:19:57 2020 +0200

    ephy: Close password completion dialog also on Tab and Escape

 embed/web-process-extension/resources/js/ephy.js | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/embed/web-process-extension/resources/js/ephy.js 
b/embed/web-process-extension/resources/js/ephy.js
index dd9026986..456d7c39e 100644
--- a/embed/web-process-extension/resources/js/ephy.js
+++ b/embed/web-process-extension/resources/js/ephy.js
@@ -225,6 +225,11 @@ Ephy.PreFillUserMenu = class PreFillUserMenu
         if (autocompleteList)
             autocompleteList = autocompleteList.getElementsByTagName("div");
 
+        if (e.code == 'Tab' || e.code == 'Escape') {
+            this._closeAllLists();
+            return;
+        }
+
         if (e.code == 'ArrowDown') {
             this._currentFocus++;
             this._addActive(autocompleteList);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]