Added standard keyboard shortcuts for closing windows

This commit is contained in:
Christophe Kamphaus
2016-02-28 23:18:21 +01:00
parent 457c68580f
commit 94f7b2ce43
3 changed files with 18 additions and 0 deletions

View File

@@ -84,6 +84,7 @@ class MainWindow(wx.Frame):
aTable = wx.AcceleratorTable([
(wx.ACCEL_CTRL, ord('Q'), wx.ID_EXIT),
(wx.ACCEL_CTRL, ord('W'), wx.ID_EXIT),
(wx.ACCEL_NORMAL, wx.WXK_F1,
ID_VERIFY),
(wx.ACCEL_NORMAL, wx.WXK_F2,