Skip to content

Commit 03475ff

Browse files
committed
Fix 'n' shortcut preventing typing that in filter boxes
1 parent 3534d6a commit 03475ff

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

InteractiveHtmlBom/ibom.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ canvas:active {
229229
width: 30px;
230230
position: relative;
231231
user-select: none;
232+
-moz-user-select: none;
232233
}
233234

234235
.bom .bom-checkbox:before {

InteractiveHtmlBom/ibom.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,9 @@ function setBomCheckboxes(value) {
679679
document.onkeydown = function(e) {
680680
switch (e.key) {
681681
case "n":
682+
if (document.activeElement.type == "text") {
683+
return;
684+
}
682685
if (currentHighlightedRowId !== null) {
683686
checkBomCheckbox(currentHighlightedRowId, "placed");
684687
highlightNextRow();

0 commit comments

Comments
 (0)