grass
grass copied to clipboard
wxGUI/vdigit: fix map window focus after starting edits
Describe the bug After start editing some vector map, Map window doesn't have automatic focus, keyboard shortcut for activating Digitizer Point/Line tool doesn't work. First, it is necessary to focus Map window with the left mouse button.
To Reproduce Steps to reproduce the behavior:
- Launch wxGUI
- Activate Vector Digitizer from Map window toolbar ComboBox widget, choose Vector digitizer item
- From Vector Digitizer toolbar ComboBox choose New vector map
- Set new vector map e.g. vdigit on the Create new vector map dialog and hit OK button
- Vector Attribute Table Manager window is opened
- Close Vector Attribute Table Manager window
- Try activate Vector Digitizer Point tool via keyboard shortcut Ctrl + P or Line tool Ctrl + L
- Tool is not activated, because Map window doesn't have automatic focus (before you activate tool via keyboard shortcut you have to mouse left click on Map window to get focus)
or
- Add some vector map e.g.
d.vect census - Activate Vector Digitizer from the Layers tree, right mouse click on the vector layer census to invoke layer menu and choose Start editing item
- Try activate Vector Digitizer Point tool via keyboard shortcut Ctrl + P or Line tool Ctrl + L
- Tool is not activated, because Map window doesn't have automatic focus (before you activate tool via keyboard shortcut you have to mouse left click on Map window to get focus)
Expected behavior After start editing some vector map, Map window should be have automatic focus and keyboard shortcut for activating Digitizer Point/Line tool work immediately.
System description:
- Operating System: all
- GRASS GIS version: all