Skip to content

Instantly share code, notes, and snippets.

View arjshiv's full-sized avatar
🌅
typing words to computers

Arjun Kannan arjshiv

🌅
typing words to computers
View GitHub Profile
@arjshiv
arjshiv / A sign up form.markdown
Last active January 8, 2016 00:40
A sign up form
@arjshiv
arjshiv / clickAndCtrlClickHandler.js
Last active July 2, 2018 10:48
jQuery event handler - Detect control click (Ctrl+click) on Windows/ command + click (Cmd+click) on Mac
function clickHandler (event) {
if (event.ctrlKey || event.metaKey) {
//ctrlKey to detect ctrl + click
//metaKey to detect command + click on MacOS
executeCtrlClickActionHere();
} else {
executeRegularClickActionHere();
}
};