mirror of
https://github.com/Codiad/Codiad.git
synced 2026-03-19 23:46:52 +01:00
Fix for issue #546
Detects if the key pressed is really CTRL not Alt Gr
This commit is contained in:
@@ -17,8 +17,10 @@
|
||||
.keydown(function(e) {
|
||||
if (!args) args = [];
|
||||
if (e.keyCode == key && (e.ctrlKey || e.metaKey)) {
|
||||
callback.apply(this, args);
|
||||
return false;
|
||||
if (!(e.ctrlKey && event.altKey)) {
|
||||
callback.apply(this, args);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user