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:
thunder2 2013-04-21 20:18:58 +00:00
parent be34ede8fd
commit 6be253e9f8

View File

@ -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));