mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-05 11:34:50 -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
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue