mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Fixed sending of status typing in chat. Modifier keys does not send typing anymore.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6324 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
be34ede8fd
commit
6be253e9f8
@ -226,10 +226,13 @@ bool ChatWidget::eventFilter(QObject *obj, QEvent *event)
|
||||
{
|
||||
if (obj == ui->chatTextEdit) {
|
||||
if (event->type() == QEvent::KeyPress) {
|
||||
updateStatusTyping();
|
||||
|
||||
QKeyEvent *keyEvent = static_cast<QKeyEvent*>(event);
|
||||
if (keyEvent) {
|
||||
if (!keyEvent->text().isEmpty()) {
|
||||
updateStatusTyping();
|
||||
}
|
||||
|
||||
if (isChatLobby) {
|
||||
if (keyEvent->key() == Qt::Key_Tab) {
|
||||
completeNickname((bool)(keyEvent->modifiers() & Qt::ShiftModifier));
|
||||
|
Loading…
Reference in New Issue
Block a user