Readonly Diagram problem

Hi,
I have set my diagram with property isReadOnly = true:

window.myDiagram =
$(go.Diagram, “myDiagram”,
{
isReadOnly: true, …

If I select nodes and I press arrows of keyboard the nodes is moving.
Why?

Regards

Giuseppe

Does that happen even if no nodes are selected? If so, then you are just scrolling the diagram.

If not, and if you have implemented your own arrow key command handler, such as in http://gojs.net/latest/extensions/DrawCommandHandler.js, then maybe you want to disable those commands when Diagram.isReadOnly is true.

I disabled “DrawCommandHandler” and I solved the problem.

Thanks
Best regards