Ticket #1241 (new defect)

Opened 4 months ago

Last modified 2 months ago

[PATCH] new dialogs -- dialogs don't close on pressing enter/return

Reported by: guest Owned by:
Priority: normal Milestone: 0.96
Component: User Interface Version:
Severity: normal Keywords: new-dialogs patch
Cc:

Description

The new dialogs created using the system in ticket #1176 do not support pressing the enter/return key to close them as the old popup windows did. This forces the user to use the mouse to manually click the "OK" button.

Change History

Changed 4 months ago by guest

This can be easily handled by an individual plugin by attaching an onsubmit handler to its form:

  this.dialog.getElementById("inputs").onsubmit = function() {
    self.apply(); // function called when the user clicks the default button
    return false;
  }

Changed 4 months ago by guest

See the Abbreviation plugin patch attached to #1176 for an example of a plugin that uses an onsubmit handler as suggested above.

Changed 2 months ago by gogo

  • keywords patch added
  • summary changed from new dialogs -- dialogs don't close on pressing enter/return to [PATCH] new dialogs -- dialogs don't close on pressing enter/return
Note: See TracTickets for help on using tickets.