Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #102214
    Jozef.Lukac
    Member
    Up
    0
    Down

    When I focus for tabed window at docking layout and press escape close not works.
    It works for close of  modal, tabbed group or one docked window.
    Regards,
    Jozef.

    #102217
    YavorDashev
    Member
    Up
    0
    Down

    Hi Jozef,
    This is the expected behavior of the DockingLayout, but we may consider this functionality for future development.
    In the mean time I have created a workaround how to have this functionality:

     dockingLayout.addEventListener('keyup', (event) => {
            const tabComponent = document.activeElement;
            if(event.key === 'Escape' && tabComponent.classList.contains('smart-tabs')) {
                tabComponent.parents[3].close();
            }
        });

    Let me know if that works for you!
    Please, do not hesitate to contact us if you have any additional questions.
    Best regards,
    Yavor Dashev
    Smart UI Team
    https://www.htmlelements.com/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.