Fix #4661: Change shortcut for submitting uploads from Enter to Ctrl+Enter
Also fix #4734.
This commit is contained in:
@@ -12,10 +12,6 @@ Upload.IQDB_MIN_SIMILARITY = 50;
|
||||
Upload.IQDB_HIGH_SIMILARITY = 70;
|
||||
|
||||
Upload.initialize_all = function() {
|
||||
if ($("#c-uploads,#c-posts").length) {
|
||||
Utility.keydown("return", "submit", Upload.submit_form, "#upload_tag_string, #post_tag_string");
|
||||
}
|
||||
|
||||
if ($("#c-uploads").length) {
|
||||
this.initialize_image();
|
||||
this.initialize_similar();
|
||||
@@ -40,13 +36,6 @@ Upload.initialize_all = function() {
|
||||
}
|
||||
}
|
||||
|
||||
Upload.submit_form = async function(event) {
|
||||
event.preventDefault();
|
||||
Utility.notice("The Enter shortcut will be removed soon. Use Ctrl+Enter instead");
|
||||
await Utility.delay(3000);
|
||||
Shortcuts.submit_form(event);
|
||||
}
|
||||
|
||||
Upload.initialize_submit = function() {
|
||||
$("#form").on("submit.danbooru", Upload.validate_upload);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user