public DialogFrameworkOptions.Builder closeOnEscape(boolean closeOnEscape) {
            options.setCloseOnEscape(closeOnEscape);
            return this;
        }
Whether the dialog can be closed with escape key.
@param closeOnEscape
@return
primefaces/src/main/java/org/primefaces/model/DialogFrameworkOptions.java