[GRASS-dev] [GRASS GIS] #3884: items selected on drop-down controls not inserted into GRASS command

#3884: items selected on drop-down controls not inserted into GRASS command
---------------------------+---------------------------------
Reporter: cmbarton | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.6.2
Component: wxGUI | Version: svn-releasebranch76
Keywords: wxGUI control | CPU: Unspecified
Platform: Unspecified |
---------------------------+---------------------------------
In a number of modules, when you select something from a drop down control
with a mouse, it shows up in the control text box, but does not get
inserted into the actual GRASS command. For the command to work, you have
to either type the name of the item into the control or paste the text of
the name of the item into the control (the latter is made more difficult
because many controls do not recognize key shortcuts like cmd-x, cmd-c,
and cmd-v at least on the Mac). \\

Here are some examples where this is a problem: \\
* selecting image subgroup in multiple image processing modules (i.*)\\
* selecting location and mapset for r.proj and v.proj\\
\\
I'm hoping this is a generic problem with the control rather than having
to find it in every module. I don't know if this is Mac specific or not,
but suspect not. It's been a problem for some time and affects later GRASS
versions too.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3884&gt;
GRASS GIS <https://grass.osgeo.org>

#3884: items selected on drop-down controls not inserted into GRASS command
--------------------------+---------------------------------
  Reporter: cmbarton | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.6.2
Component: wxGUI | Version: svn-releasebranch76
Resolution: | Keywords: wxGUI control
       CPU: Unspecified | Platform: Unspecified
--------------------------+---------------------------------

Comment (by nila):

I can confirm this is still an issue for macOS on master (7.9) and I have
been wrestling with this for some quite some time with GRASS7 (can't
remember exactly). It seems to me be a binding issue (maybe for mac
only?).

This is basically the same description for the issue as cmbarton, sorry
'bout that, but this is how I would describe it:

Clicking and selecting with the popup menu for Location it inserts the
selected location. But doesn't trigger selection updated method. Editing
the text field manually after selection (e.g. deleting the last letter and
rewrite it or inserting a space and delete it – well, you get the picture)
do trigger the update selection method and you can proceed. The same
procedure must be repeated with mapset. Finally, for some reason,
selecting the map with the popup menu works as intended.

I'm pretty new to the GRASS code base, I couldn't even find where to look
into this issue. Any suggestion?

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3884#comment:1&gt;
GRASS GIS <https://grass.osgeo.org>

#3884: items selected on drop-down controls not inserted into GRASS command
--------------------------+---------------------------------
  Reporter: cmbarton | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.6.2
Component: wxGUI | Version: svn-releasebranch76
Resolution: | Keywords: wxGUI control
       CPU: Unspecified | Platform: Unspecified
--------------------------+---------------------------------

Comment (by nila):

This issue is a duplicate of #3502 (where the cause of the problem is
described) and may be closed.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3884#comment:2&gt;
GRASS GIS <https://grass.osgeo.org>