We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 463189e commit e5c2bb1Copy full SHA for e5c2bb1
src/components/projects/projectId/labeling/sessionId/sub-components/LabelingSuiteLabeling.tsx
@@ -517,11 +517,10 @@ export default function LabelingSuiteLabeling() {
517
518
function handleKeyboardEvent(event) {
519
const labelSelection = document.getElementById('label-selection-box');
520
- if (!labelSelection) return;
521
if (event.key == 'ArrowRight' || event.key == 'ArrowLeft') {
522
setActiveTasksFunc([]);
523
}
524
- if (!labelSelection.classList.contains('hidden')) return;
+ if (labelSelection && !labelSelection.classList.contains('hidden')) return;
525
for (const key in labelHotkeys) {
526
if (key == event.key) {
527
const task = labelingTasks.find(t => t.id == labelHotkeys[key].taskId);
0 commit comments