[FIX] web: home_menu navigation conflict
BEFORE: e.g. navigating with arrows in a dropdown menu when the home menu is showed conflicts (focused item changes in the same time in the dropdown and in the home menu) AFTER: the home menu will not receive keydown events that are stopped by the hotkey service. Taskid-2578926 closes odoo/odoo#73130 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
This commit is contained in:
@@ -145,9 +145,12 @@ export const hotkeyService = {
|
||||
}
|
||||
}
|
||||
|
||||
// Prevent default on event if it has been handheld.
|
||||
// Only if event has been handheld.
|
||||
if (dispatched) {
|
||||
// Purpose: prevent browser defaults
|
||||
event.preventDefault();
|
||||
// Purpose: stop other window keydown listeners (e.g. home menu)
|
||||
event.stopImmediatePropagation();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user