Focus first input by default in Stretch/Skew dialog

main
Isaiah Odhner 2023-02-14 08:32:15 -05:00
parent 7e4ebb7143
commit eee7179cf8
1 changed files with 3 additions and 1 deletions

View File

@ -3235,12 +3235,14 @@ function image_stretch_and_skew() {
}
$canvas_area.trigger("resize");
$w.close();
}, { type: "submit" })[0].focus();
}, { type: "submit" });
$w.$Button(localize("Cancel"), () => {
$w.close();
});
$w.$main.find("input").first().focus().select();
$w.center();
handle_keyshortcuts($w);