mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-14 03:15:49 +02:00
Allow typing unambiguous :emoji: in inline replies
This commit is contained in:
parent
137a20ed0e
commit
e2a28f2811
Resources/Plugins/emoji-keyboard
@ -9,7 +9,7 @@ Emoji keyboard
|
||||
chylex
|
||||
|
||||
[version]
|
||||
1.4.1
|
||||
1.4.2
|
||||
|
||||
[website]
|
||||
https://tweetduck.chylex.com
|
||||
|
@ -349,7 +349,7 @@ enabled(){
|
||||
lastEmojiLength = foundEmoji.length;
|
||||
}
|
||||
}
|
||||
else if (foundNames.length > 1){
|
||||
else if (foundNames.length > 1 && $(".js-app-content").is(".is-open")){
|
||||
e.preventDefault();
|
||||
ele.val(val.substring(0, firstColon)+val.substring(ele[0].selectionStart));
|
||||
ele[0].selectionEnd = ele[0].selectionStart = firstColon;
|
||||
@ -407,11 +407,12 @@ ready(){
|
||||
$(document).on("click", this.documentClickEvent);
|
||||
$(document).on("keydown", this.documentKeyEvent);
|
||||
$(document).on("uiComposeImageAdded", this.uploadFilesEvent);
|
||||
this.composeInput.on("keydown", this.composeInputKeyDownEvent);
|
||||
this.composeInput.on("keypress", this.composeInputKeyPressEvent);
|
||||
this.composeInput.on("focus", this.composeInputFocusEvent);
|
||||
this.composeDrawer.on("uiComposeTweetSending", this.composerSendingEvent);
|
||||
|
||||
$(document).on("keydown", ".js-compose-text", this.composeInputKeyDownEvent);
|
||||
$(document).on("keypress", ".js-compose-text", this.composeInputKeyPressEvent);
|
||||
$(document).on("focus", ".js-compose-text", this.composeInputFocusEvent);
|
||||
|
||||
// HTML generation
|
||||
|
||||
var convUnicode = function(codePt){
|
||||
@ -533,10 +534,11 @@ disabled(){
|
||||
$(document).off("click", this.documentClickEvent);
|
||||
$(document).off("keydown", this.documentKeyEvent);
|
||||
$(document).off("uiComposeImageAdded", this.uploadFilesEvent);
|
||||
this.composeInput.off("keydown", this.composeInputKeyDownEvent);
|
||||
this.composeInput.off("keypress", this.composeInputKeyPressEvent);
|
||||
this.composeInput.off("focus", this.composeInputFocusEvent);
|
||||
this.composeDrawer.off("uiComposeTweetSending", this.composerSendingEvent);
|
||||
|
||||
$(document).off("keydown", ".js-compose-text", this.composeInputKeyDownEvent);
|
||||
$(document).off("keypress", ".js-compose-text", this.composeInputKeyPressEvent);
|
||||
$(document).off("focus", ".js-compose-text", this.composeInputFocusEvent);
|
||||
|
||||
TD.mustaches["compose/docked_compose.mustache"] = this.prevComposeMustache;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user