asterics / WebACS

HTML5/JS version of the AsTeRICS Configuration Suite
Apache License 2.0
3 stars 2 forks source link

Properties not displayed for components that are placed per Copy&Paste. #22

Open sabicalija opened 6 years ago

sabicalija commented 6 years ago

Properties of elements that are created via CTRL+C, CTRL+V are not displayed correctly.

To reproduce this issue, perform following steps:

  1. Select a component already placed inside ACS (Model Designer).
  2. Enter CTRL+C, CTRL+V
  3. Select the newly created element.
  4. Properties are not displayed

Workaround: Don't use CTRL+C, CTRL+V for components creation/placement.

sabicalija commented 5 years ago

I'm having problems to copy/paste components in a model. Tested with Chrome and Firefox. Does anyone else have this problem?

kingcole commented 5 years ago

hmm...same here - strange, because this definitely used to work

sabicalija commented 5 years ago

Well, I can copy that. :relaxed: It used to work here too.

Maybe there are API changes in newer browser versions. What do you think? What might cause this problem?

kingcole commented 5 years ago

Yes, that might be - seems no keypress-events are fired any more for CTRL-c/v, while other keypresses actually do fire. This could be a pain in the a... - can't use keydown, for it fires as soon as you press CTRL, can't use keyup since it fires too late...