jQWidgets Forums

jQuery UI Widgets Forums Dialogs and Notifications Window Prevent Close on 'Esc' keypress

Tagged: ,

This topic contains 2 replies, has 2 voices, and was last updated by  stevenmahony 12 years, 2 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Prevent Close on 'Esc' keypress #18664

    stevenmahony
    Participant

    Hi,

    Is there an option to prevent the window from closing when the Esc key is pressed?

    If not is there a way to prevent the close event from happening when I capture a keypress on the window?

    Thanks

    Steven

    Prevent Close on 'Esc' keypress #18669

    support
    Participant

    Hi Steven,

    In order to prevent the jqxWindow from closing when the Esc key is pressed, you can use the keyboardCloseKey property as shown:

     $('#window').jqxWindow({
    keyboardCloseKey :'none',
    showCollapseButton: true, maxHeight: 400, maxWidth: 700, minHeight: 200, minWidth: 200, height: 300, width: 500, theme: basicDemo.config.theme,
    initContent: function () {
    $('#tab').jqxTabs({ height: '100%', width: '100%', theme: basicDemo.config.theme });
    }
    });
    };

    Best Wishes,
    Mariya

    jQWidgets Team
    http://www.jqwidgets.com

    Prevent Close on 'Esc' keypress #18678

    stevenmahony
    Participant

    Perfect, was looking for a setting but could not find it.

    Thank you.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.