Showing the changes to scripts/communityScripts (2 of 2 files). Show all
Unified · Split
| @@ -230,13 +230,13 @@ Rectangle { · 229 unmodified lines | |||
| 230 | event.accepted = true; | 230 | event.accepted = true; |
| 231 | toScript({type: "send_message", message: text, channel: pageVal}); | 231 | toScript({type: "send_message", message: text, channel: pageVal}); |
| 232 | text = "" | 232 | text = "" |
| 233 | } | ||
| 234 | } | ||
| 235 | onTextChanged: { | ||
| 236 | if (text === "") { | ||
| 233 | toScript({type: "action", action: "end_typing"}); | 237 | toScript({type: "action", action: "end_typing"}); |
| 234 | } else { | 238 | } else { |
| 235 | if (text === "" || (event.key === Qt.Key_Backspace && text.length === 1)) { | 239 | toScript({type: "action", action: "start_typing"}); |
| 236 | toScript({type: "action", action: "end_typing"}); | ||
| 237 | } else { | ||
| 238 | toScript({type: "action", action: "start_typing"}); | ||
| 239 | } | ||
| 240 | } | 240 | } |
| 241 | } | 241 | } |
| 242 | onFocusChanged: { | 242 | onFocusChanged: { |
| @@ -134,7 +134,7 @@ function ChatBubbles_RecvMsg(channel, msg, senderID, localOnly) { · 133 unmodified lines | |||
| 134 | if (channel !== CHAT_CHANNEL && channel !== TYPING_NOTIFICATION_CHANNEL) { return; } | 134 | if (channel !== CHAT_CHANNEL && channel !== TYPING_NOTIFICATION_CHANNEL) { return; } |
| 135 | 135 | ||
| 136 | // don't spawn bubbles for MyAvatar if the setting is disabled | 136 | // don't spawn bubbles for MyAvatar if the setting is disabled |
| 137 | //if (!SELF_BUBBLES && (senderID === MyAvatar.sessionID || !MyAvatar.sessionID)) { return; } | 137 | if (!SELF_BUBBLES && (senderID === MyAvatar.sessionUUID || !MyAvatar.sessionUUID)) { return; } |
| 138 | 138 | ||
| 139 | let data; | 139 | let data; |
| 140 | try { | 140 | try { |