1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-05-05 11:34:07 +02:00

Fix docked composer not re-focusing after image upload

This commit is contained in:
chylex 2020-05-16 18:08:51 +02:00
parent cf7029037e
commit ca69554f37

View File

@ -871,8 +871,6 @@
}
uploader.addFilesToUpload([ item.getAsFile() ]);
$(".js-compose-text", ".js-docked-compose").focus();
break;
}
}
@ -1069,7 +1067,7 @@
});
//
// Block: Fix docked composer not re-focusing after Alt+Tab.
// Block: Fix docked composer not re-focusing after Alt+Tab & image upload.
//
onAppReady.push(function fixDockedComposerRefocus(){
$(document).on("tduckOldComposerActive", function(e){
@ -1089,6 +1087,10 @@
return cancelBlur;
});
});
$(document).on("uiComposeImageAdded", function(){
$(".js-compose-text", ".js-docked-compose").focus();
});
});
//