X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=m_librarian%2Fwx%2FListBooks.py;h=b1f84a11345449e50da3e4f06d0ea84ead2894e2;hb=1a0cfa4b41817b2f558bb78ced4ce0520bc907d8;hp=3bcd331ab152c0d217657ad71490959e6ca3fbf6;hpb=80ba14a7bd17c4ddf1bd7c193e0bba6aa4d0c907;p=m_librarian.git diff --git a/m_librarian/wx/ListBooks.py b/m_librarian/wx/ListBooks.py index 3bcd331..b1f84a1 100644 --- a/m_librarian/wx/ListBooks.py +++ b/m_librarian/wx/ListBooks.py @@ -52,6 +52,14 @@ class ListBooksPanel(GridPanel): grid.AutoSizeColumns() grid.AutoSizeRows() + def OnDClick(self, event): + pass + + def OnKeyDown(self, event): + if event.GetKeyCode() == wx.WXK_ESCAPE: + self.Parent.Close() + else: + event.Skip() class ListBooksWindow(GridWindow):