diff --git a/css/80_app.css b/css/80_app.css index b4650e4f3f..1701ccbab2 100644 --- a/css/80_app.css +++ b/css/80_app.css @@ -2634,15 +2634,6 @@ img.tag-reference-wiki-image { */ } -/* hidden field to prevent user from tabbing out of the sidebar */ -input.key-trap { - height: 0px; - width: 0px; - padding: 0px; - border: 1px solid rgba(0,0,0,0); -} - - /* add tag, add relation buttons */ .add-row { display: flex; diff --git a/modules/ui/entity_editor.js b/modules/ui/entity_editor.js index 81e9071d60..ce83a5f1aa 100644 --- a/modules/ui/entity_editor.js +++ b/modules/ui/entity_editor.js @@ -112,24 +112,6 @@ export function uiEntityEditor(context) { body.call(section.render); }); - body - .selectAll('.key-trap-wrap') - .data([0]) - .enter() - .append('div') - .attr('class', 'key-trap-wrap') - .append('input') - .attr('type', 'text') - .attr('class', 'key-trap') - .on('keydown.key-trap', function() { - // On tabbing, send focus back to the first field on the inspector-body - // (probably the `name` field) #4159 - if (d3_event.keyCode === 9 && !d3_event.shiftKey) { - d3_event.preventDefault(); - body.select('input').node().focus(); - } - }); - context.history() .on('change.entity-editor', historyChanged);