Skip to content

Commit

Permalink
#1213 Don't let ENTER close mapping panel
Browse files Browse the repository at this point in the history
  • Loading branch information
helgoboss committed Sep 25, 2024
1 parent 9eaf442 commit 875e062
Show file tree
Hide file tree
Showing 2 changed files with 122 additions and 114 deletions.
9 changes: 6 additions & 3 deletions dialogs/src/mapping_panel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -729,16 +729,19 @@ pub fn create(context: ScopedContext, ids: &mut IdGenerator) -> Dialog {
"<=",
ids.named_id("ID_MAPPING_PANEL_PREVIOUS_BUTTON"),
context.rect(160, 514, 30, 14),
) + NOT_WS_TABSTOP,
ok_button(
),
// We make this a normal push button instead of an OK button so that
// pressing enter in a text field doesn't automatically trigger it.
pushbutton(
"OK",
ids.named_id("ID_MAPPING_PANEL_OK"),
context.rect(200, 514, 50, 14),
),
pushbutton(
"=>",
ids.named_id("ID_MAPPING_PANEL_NEXT_BUTTON"),
context.rect(260, 514, 30, 14),
) + NOT_WS_TABSTOP,
),
context.checkbox(
"Enabled",
ids.named_id("IDC_MAPPING_ENABLED_CHECK_BOX"),
Expand Down
Loading

0 comments on commit 875e062

Please sign in to comment.