| 783 | } |
| 784 | |
| 785 | void InlineChatWidget::keyPressEvent(QKeyEvent *e) |
| 786 | { |
| 787 | switch (e->modifiers()) { |
| 788 | case Qt::NoModifier: |
| 789 | if (e->key() == Qt::Key_Escape) { |
| 790 | d->handleClose(); |
| 791 | return; |
| 792 | } |
| 793 | default: |
| 794 | break; |
| 795 | } |
| 796 | QWidget::keyPressEvent(e); |
| 797 | } |
| 798 | |
| 799 | bool InlineChatWidget::eventFilter(QObject *obj, QEvent *e) |
| 800 | { |
nothing calls this directly
no test coverage detected