File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -232,7 +232,7 @@ Rectangle {
232
232
text = " "
233
233
toScript ({type: " action" , action: " end_typing" });
234
234
} else {
235
- if (text === " " ) {
235
+ if (text === " " || ( event . key === Qt . Key_Backspace && text . length === 1 ) ) {
236
236
toScript ({type: " action" , action: " end_typing" });
237
237
} else {
238
238
toScript ({type: " action" , action: " start_typing" });
Original file line number Diff line number Diff line change @@ -202,9 +202,13 @@ AvatarList.avatarSessionChangedEvent.connect((_, oldSessionID) => ChatBubbles_De
202
202
203
203
settings = Settings . getValue ( "ChatBubbles-Config" , settings ) ;
204
204
Messages . messageReceived . connect ( ChatBubbles_RecvMsg ) ;
205
+ Messages . subscribe ( TYPING_NOTIFICATION_CHANNEL ) ;
206
+ Messages . subscribe ( "chat" ) ;
205
207
206
208
Script . scriptEnding . connect ( ( ) => {
207
209
Settings . setValue ( "ChatBubbles-Config" , settings ) ;
208
210
Messages . messageReceived . disconnect ( ChatBubbles_RecvMsg ) ;
211
+ Messages . unsubscribe ( TYPING_NOTIFICATION_CHANNEL ) ;
212
+ Messages . unsubscribe ( "chat" ) ;
209
213
ChatBubbles_DeleteAll ( ) ;
210
214
} ) ;
You can’t perform that action at this time.
0 commit comments