003609b8d268c19e91c190f5ee6db8dba17032f9
**Good to know first** The UI active element takership system is directly bound to the focus trap mechanism. **Before this commit** If an element become the UI active element but has no tabable elements in its tree, we force its tabindex to the -1 value to make it programmatically focusable. That way we ensure the focus is effectively trapped. **After this commit** The tabindex is no more forced at all. Instead, if we detect that there are no tabable elements inside the UI active element candidate, it simply does not become the UI active element. In other words, this commit kind of weakens the focus trap. But this is perfectly fine for our use cases, i.e.: - dialogs always have at least one focusable button (close, ok...) - the website wysiwyg-adapter has a ton of focusable elements **Why ?** We need this change to permit other UI pieces to make use of the active element takeover mechanism, i.e. popovers. Part-of: odoo/odoo#140885
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%