Class Act

Back to the shelf

Javascript · Snippet · ASP.net

shift click event

JavaScript code that detects when the user holds Shift and clicks at the same time.

Example

How to use shift click event:
Load the script on the page, then call it from the event or function that needs it.

Code

            if (window.event.shiftKey && _bAllowFilter) {
                CopyToClipboard($(this).text())
                ret = false;
            }