Focus first input by default in Stretch/Skew dialog
parent
7e4ebb7143
commit
eee7179cf8
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue