Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shortcuts and Form-tag Collision Issues #610

Open
cheonjeongdae opened this issue Aug 1, 2018 · 0 comments
Open

Shortcuts and Form-tag Collision Issues #610

cheonjeongdae opened this issue Aug 1, 2018 · 0 comments
Labels

Comments

@cheonjeongdae
Copy link
Contributor

$(document).ready(function() {
//Type in input-textbox propagate key event to document. Stop it.
// example
stopPropagationOnInput('move_data_key');
});

function stopPropagationOnInput(elementId){
document.getElementById(elementId).addEventListener('keydown',function(e) {
e.stopPropagation();
});
document.getElementById(elementId).addEventListener('keyup',function(e) {
e.stopPropagation();
});
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant