From 6d631831e217351747fafb58d8fcb973113bbd75 Mon Sep 17 00:00:00 2001 From: Jim O'Halloran Date: Mon, 17 May 2021 17:27:41 +0930 Subject: [PATCH] When focussing a selectable item, select the existing content --- .../Resources/public/js/app/modules/ignore-tabbable.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Oro/Bundle/UIBundle/Resources/public/js/app/modules/ignore-tabbable.js b/src/Oro/Bundle/UIBundle/Resources/public/js/app/modules/ignore-tabbable.js index 361175cb50e..c49e2a0836e 100644 --- a/src/Oro/Bundle/UIBundle/Resources/public/js/app/modules/ignore-tabbable.js +++ b/src/Oro/Bundle/UIBundle/Resources/public/js/app/modules/ignore-tabbable.js @@ -26,6 +26,9 @@ $(document).on('keydown', function(event) { if (nextTabbable) { $(nextTabbable).focus(); + if (typeof nextTabbable.select !== 'undefined') { + nextTabbable.select(); + } event.preventDefault(); } });