Home Unanswered Active Tags New Question

Move event with Ctrl-key pressed

Is ther a way to detect if the Ctrl-key was pressed in the client-side EventMoveJavascript handler?

This way I can implement a Move (ctrl-key up) or Copy (ctrl-key down)

Asked by Willem Sanders 2 years ago.
Replies

The EventMoveJavaScript handler (client-side) now keeps information about the Ctrl and Shift keys status in "ctrl" and "shift" variables respectively:

EventMoveJavaScript="if (ctrl) { doYourCopyAction(); } else if (shift) { doYourMoveAction(); } else { doTheDefaultAction(); }"

This feature is available since build 5.8.1968.

Comment posted by Dan Letecky 2 years ago.
New Reply
This reply is
Your name (optional):

DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java