Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wxGUI/vdigit: fix keyboard shortcut for activating point/line tool #2522

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gui/wxpython/vdigit/g.gui.vdigit.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ <h3>DIGITIZER TOOLBAR</h3>
<dt><img src="icons/point-create.png" alt="icon">&nbsp;
<em>Digitize new point</em></dt>
<dd>Add new point to vector map and optionally define its
attributes.</dd>
attributes, Ctrl+P.</dd>

<dt><img src="icons/line-create.png" alt="icon">&nbsp;
<em>Digitize new line</em></dt>
<dd>Add new line to vector map and optionally define its
attributes.</dd>
attributes, Ctrl+L.</dd>

<dt><img src="icons/boundary-create.png" alt="icon">&nbsp;
<em>Digitize new boundary</em></dt>
Expand Down
4 changes: 2 additions & 2 deletions gui/wxpython/vdigit/mapwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,10 @@ def OnKeyDown(self, event):
event = None
if not shift:
if kc == ord("P"):
event = wx.CommandEvent(winid=self.toolbar.addPoint)
event = wx.CommandEvent(id=self.toolbar.addPoint)
tool = self.toolbar.OnAddPoint
elif kc == ord("L"):
event = wx.CommandEvent(winid=self.toolbar.addLine)
event = wx.CommandEvent(id=self.toolbar.addLine)
tool = self.toolbar.OnAddLine
if event:
self.toolbar.OnTool(event)
Expand Down