-
Notifications
You must be signed in to change notification settings - Fork 476
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
Class selector as a filter #144
Comments
key('ctrl+s, ctrl+a, ctrl+b, ctrl+i, ctrl+u', 'document', function(event) {
event.preventDefault();
});
key('ctrl+s, ctrl+b, ctrl+i, ctrl+u', 'editable', function(event) {
event.preventDefault();
});
key.filter = function(event) {
var contentEditable = (event.target || event.srcElement).isContentEditable;
key.setScope(contentEditable ? 'editable' : 'document');
return true;
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
None yet
0 participants
Is it possible to use class selector as a filter?
$('.a, .b, .c')
- shortcut works.$('.d, .e, .f')
- shortcut doesn't work.I need to disable these shortcuts to the document:
'ctrl+s, ctrl+a, ctrl+b, ctrl+i, ctrl+u'
, but for the contenteditable only'ctrl+s, ctrl+b, ctrl+i, ctrl+u'
.Thanks in advance.
The text was updated successfully, but these errors were encountered: