jsdialog: don't focus separators

Don't allow separator and spacer (placeolder which expands)
to be target of a focus when we use tab key.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I724604eb299c65e4709d3e7708f514c312188393
private/mmeeks/bgsaveunit
Szymon Kłos 2024-04-10 16:43:49 +02:00 committed by Szymon Kłos
parent e733accdac
commit aeaba960db
1 changed files with 2 additions and 0 deletions

View File

@ -3130,6 +3130,8 @@ L.Control.JSDialogBuilder = L.Control.extend({
&& data.type !== 'buttonbox'
&& data.type !== 'treelistbox'
&& data.type !== 'time'
&& data.type !== 'separator'
&& data.type !== 'spacer'
)
control.setAttribute('tabIndex', '0');
},