Posted 13 February 2018, 6:20 am EST
Hi,
We have a scenario where based on a condition we don’t allow user to cut the cells even if he presses CTRL+x.
in spread v9, we achieved it by writing an addKeyMap for CTRL+x key and return false based on a condition.
in spread v11, we did same thing but with commandManager’s register and setShortcutKey, as you guys suggested. But here although we return false, default functionality is not prevented. Looks like this is more like a event handler kind of thingy in v11.
So, can someone suggest what is better way to restrict user to cut cells based on a condition is Spread V11?
please find the working code in spread9.html and code that is not working in spread11.html, that are attached to this post.
