moodle/theme
Andrew Nicols 83296b266b
MDL-78324 theme_boost: Only shift focus if origin focus unchanged
In the Moodle additions for the Bootstrap Dropdown we update the focus
after a 50ms delay. This is presumably because the targetted focus point
may not have shown yet and may be opened in a separate thread, though
sadly the original reasoning is not documented, and is not mentioned in
the original issues.

As a result of this delay, it was possible for the user to start to
interact and then have focus stolen from them. In reality this does not
happen often - 50ms is simply too short a time for a human to do so, but
it is plenty of time for Behat to do so and we have seen some random
fails as other parts of the UI become faster. When this happens,
keyboard focus tests are broken by this 50ms behaviour.

The fix here updates the shift focus function when closing the menu to
check whether the focus has changed from the previous location already
before setting the focus.
2023-09-09 13:45:36 +08:00
..
boost MDL-78324 theme_boost: Only shift focus if origin focus unchanged 2023-09-09 13:45:36 +08:00
classic Merge branch 'MDL-78558-master' of https://github.com/roland04/moodle 2023-09-08 22:14:27 +08:00
font.php MDL-72646 theme: update font download MIME types, RFC-8081 2022-02-16 19:10:05 +13:00
image.php MDL-74235 core: Revert theme changes 2022-04-07 13:27:27 +06:00
index.php MDL-77793 core_theme: Device selections removed from theme selector 2023-06-19 16:32:14 +10:00
javascript.php
jquery.php
styles.php MDL-76367 core: Apply RTL transformations to editors too 2022-11-18 15:13:12 +08:00
styles_debug.php MDL-55751 themes: remove the css chunker 2019-09-09 11:18:05 +02:00
switchdevice.php
upgrade.txt MDL-77793 core_theme: Device selections removed from theme selector 2023-06-19 16:32:14 +10:00
yui_combo.php MDL-77171 core: Remove legacy tooltip/popuphelp YUI mods 2023-02-07 23:52:01 +08:00
yui_image.php