Merge pull request #37 from outis1one/clDemoe/fix-pitch-editing-kH3FR
Fix pitch input: stop editor keydown handler from intercepting input …
This commit is contained in:
@@ -5547,6 +5547,9 @@ function edWheel(e){
|
|||||||
}
|
}
|
||||||
function edKeyDown(e){
|
function edKeyDown(e){
|
||||||
if(!document.getElementById("sed").classList.contains("active"))return;
|
if(!document.getElementById("sed").classList.contains("active"))return;
|
||||||
|
// Don't intercept keys when user is typing in an input or select (e.g. pitch input)
|
||||||
|
var tag=document.activeElement&&document.activeElement.tagName;
|
||||||
|
if(tag==="INPUT"||tag==="TEXTAREA"||tag==="SELECT")return;
|
||||||
|
|
||||||
// Ctrl+C — copy selected range or selected note
|
// Ctrl+C — copy selected range or selected note
|
||||||
if((e.ctrlKey||e.metaKey)&&e.key==="c"){
|
if((e.ctrlKey||e.metaKey)&&e.key==="c"){
|
||||||
|
|||||||
Reference in New Issue
Block a user