diff --git a/gui/wxpython/vdigit/g.gui.vdigit.html b/gui/wxpython/vdigit/g.gui.vdigit.html index 191f4b4f3bf..13d45b04d76 100644 --- a/gui/wxpython/vdigit/g.gui.vdigit.html +++ b/gui/wxpython/vdigit/g.gui.vdigit.html @@ -84,12 +84,12 @@

DIGITIZER TOOLBAR

icon  Digitize new point
Add new point to vector map and optionally define its - attributes.
+ attributes, Ctrl+P.
icon  Digitize new line
Add new line to vector map and optionally define its - attributes.
+ attributes, Ctrl+L.
icon  Digitize new boundary
diff --git a/gui/wxpython/vdigit/mapwindow.py b/gui/wxpython/vdigit/mapwindow.py index 3a2df94d2ba..ae05c349d7c 100644 --- a/gui/wxpython/vdigit/mapwindow.py +++ b/gui/wxpython/vdigit/mapwindow.py @@ -114,11 +114,11 @@ def OnKeyDown(self, event): event = None if not shift: - if kc == ord('P'): - event = wx.CommandEvent(winid=self.toolbar.addPoint) + if kc == ord("P"): + event = wx.CommandEvent(id=self.toolbar.addPoint) tool = self.toolbar.OnAddPoint - elif kc == ord('L'): - event = wx.CommandEvent(winid=self.toolbar.addLine) + elif kc == ord("L"): + event = wx.CommandEvent(id=self.toolbar.addLine) tool = self.toolbar.OnAddLine if event: self.toolbar.OnTool(event)