mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-05-27 23:34:07 +02:00
Fix docked composer not re-focusing after image upload
This commit is contained in:
parent
cf7029037e
commit
ca69554f37
@ -871,8 +871,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
uploader.addFilesToUpload([ item.getAsFile() ]);
|
uploader.addFilesToUpload([ item.getAsFile() ]);
|
||||||
|
|
||||||
$(".js-compose-text", ".js-docked-compose").focus();
|
|
||||||
break;
|
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(){
|
onAppReady.push(function fixDockedComposerRefocus(){
|
||||||
$(document).on("tduckOldComposerActive", function(e){
|
$(document).on("tduckOldComposerActive", function(e){
|
||||||
@ -1089,6 +1087,10 @@
|
|||||||
return cancelBlur;
|
return cancelBlur;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$(document).on("uiComposeImageAdded", function(){
|
||||||
|
$(".js-compose-text", ".js-docked-compose").focus();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user