mirror of https://github.com/apache/nifi.git
NIFI-1426:
- Ensuring we aren't preventing default when focused in a textarea.
This commit is contained in:
parent
1bf7a585b2
commit
dbe8ff3f44
|
@ -106,13 +106,12 @@ $(document).ready(function () {
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!$('input').is(':focus') && (evt.keyCode == 8 || evt.keyCode === 46)) {
|
if (!$('input, textarea').is(':focus') && (evt.keyCode == 8 || evt.keyCode === 46)) {
|
||||||
// backspace or delete
|
// backspace or delete
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue