Opened 8 years ago

Closed 8 years ago

#3718 closed bug (fixed)

Close function isn't passed ev.keycode or others

Reported by: mdenyse Owned by:
Priority: major Milestone: 1.7
Component: ui.dialog Version: 1.6rc2
Keywords: Close Function Keycode Cc:
Blocked by: Blocking:


I was asked to submit this as a bug (re: post

My close function does not have ev.kecode filled in or many other parameters, so there's no way to determine the keycode without using other means.

Sample code:

$('<div>Hi there!</div>').dialog({

title: 'My Title',
modal: true,
buttons: {

'OK': function() { $(this).dialog('destroy'); },
'Cancel': function() { $(this).dialog('destroy'); },


function(ev, ui) {




Change History (2)

comment:1 Changed 8 years ago by scottgonzalez

  • Milestone changed from TBD to 1.6
  • Priority changed from minor to major

comment:2 Changed 8 years ago by paul

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in r1854.

Note: See TracTickets for help on using tickets.