Add a keyboard shortcut to quit the application.

This commit is contained in:
Saleem Edah-Tally
2025-07-09 17:16:30 +02:00
parent 1bdffe7c79
commit c2c792dd3d

View File

@@ -110,6 +110,11 @@ void XS7::OnDpkDoubleClick ( wxMouseEvent& evt )
void XS7::OnAppKeyPressed(wxKeyEvent& evt) void XS7::OnAppKeyPressed(wxKeyEvent& evt)
{ {
if (evt.ControlDown())
{
if (evt.GetKeyCode() == 'Q')
Close();
}
if (evt.GetKeyCode() == WXK_ESCAPE) if (evt.GetKeyCode() == WXK_ESCAPE)
if (m_insaneWidget) if (m_insaneWidget)
m_insaneWidget->CancelScanning(); m_insaneWidget->CancelScanning();