MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / isEscapeKeyEvent

Function isEscapeKeyEvent

src/gui/FlexControlDialog.cpp:430–443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

428}
429
430bool isEscapeKeyEvent(QEvent* event)
431{
432 if (!event)
433 return false;
434 const QEvent::Type type = event->type();
435 if (type != QEvent::ShortcutOverride
436 && type != QEvent::KeyPress
437 && type != QEvent::KeyRelease) {
438 return false;
439 }
440 auto* keyEvent = static_cast<QKeyEvent*>(event);
441 return keyEvent->key() == Qt::Key_Escape
442 || keyEvent->key() == Qt::Key_Cancel;
443}
444
445bool isWheelActionId(const QString& actionId)
446{

Callers 3

eventMethod · 0.85
keyPressEventMethod · 0.85
handleEscapeReleaseMethod · 0.85

Calls 1

keyMethod · 0.80

Tested by

no test coverage detected