MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / keyPressEvent

Method keyPressEvent

src/plugins/chat/widgets/inlinechatwidget.cpp:785–797  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

783}
784
785void 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
799bool InlineChatWidget::eventFilter(QObject *obj, QEvent *e)
800{

Callers

nothing calls this directly

Calls 3

modifiersMethod · 0.80
handleCloseMethod · 0.80
keyMethod · 0.45

Tested by

no test coverage detected