mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-10 03:49:51 -05: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 (obj == ui->chatTextEdit) {
|
||||||
if (event->type() == QEvent::KeyPress) {
|
if (event->type() == QEvent::KeyPress) {
|
||||||
updateStatusTyping();
|
|
||||||
|
|
||||||
QKeyEvent *keyEvent = static_cast<QKeyEvent*>(event);
|
QKeyEvent *keyEvent = static_cast<QKeyEvent*>(event);
|
||||||
if (keyEvent) {
|
if (keyEvent) {
|
||||||
|
if (!keyEvent->text().isEmpty()) {
|
||||||
|
updateStatusTyping();
|
||||||
|
}
|
||||||
|
|
||||||
if (isChatLobby) {
|
if (isChatLobby) {
|
||||||
if (keyEvent->key() == Qt::Key_Tab) {
|
if (keyEvent->key() == Qt::Key_Tab) {
|
||||||
completeNickname((bool)(keyEvent->modifiers() & Qt::ShiftModifier));
|
completeNickname((bool)(keyEvent->modifiers() & Qt::ShiftModifier));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user