MCPcopy Create free account
hub / github.com/OpenBoard-org/OpenBoard / keyPressEvent

Method keyPressEvent

src/desktop/UBCustomCaptureWindow.cpp:148–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146
147
148void UBCustomCaptureWindow::keyPressEvent ( QKeyEvent * event )
149{
150 if (event->key() == Qt::Key_Escape)
151 {
152 mIsSelecting = false;
153
154 if (mSelectionBand)
155 {
156 mSelectionBand->hide();
157 }
158
159 event->accept();
160 reject();
161 }
162}
163
164
165void UBCustomCaptureWindow::showEvent ( QShowEvent * event )

Callers

nothing calls this directly

Calls 3

keyMethod · 0.45
hideMethod · 0.45
acceptMethod · 0.45

Tested by

no test coverage detected