archimatetool / archi

Archi: ArchiMate Modelling Tool
https://www.archimatetool.com
MIT License
927 stars 267 forks source link

Models Tree loses focus after an object is dragged into top-level folder #837

Closed lvmm closed 2 years ago

lvmm commented 2 years ago

Version of Archi

4.9.3

Archi Plug-ins

none

Operating System

windows 10

Expected Behaviour

keyboard shortcurts should work all the time

Actual Behaviour

keyboard shortcuts stop working after a view is dragged out of a folder in Models tree

Steps to Reproduce the Behaviour

  1. create a folder under Views in Models pane
  2. drag a view into this folder
  3. drag it back to the root of Views folder
  4. press ^S to save - model is not saved. All keyboard shortcuts stop working e.g. pressing ^Z doesn't undo the move, etc.
Phillipus commented 2 years ago

Ensure that the model concerned has the focus (i.e something selected) in the Models Tree when using these commands.

When you drag and drop sometimes nothing is selected in the tree, This will cause loss of focus.

Phillipus commented 2 years ago

Seems that dragging a tree node to the top folder can sometimes deselect it. Will investigate...

Phillipus commented 2 years ago

I've changed the title of this issue to reflect the true cause.

I've investigated the code and the Tree can lose the current selection and focus when objects are dragged into a top-level folder. And this doesn't occur all the time.

This might take some time to solve (if it can be solved).

Phillipus commented 2 years ago

This is now fixed and will be in the next version.