FilterBar: Do not trap Tab, Home/End keys

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2022-01-06 19:01:14 +01:00
parent 98e11bbb37
commit 5e31c12063

View file

@ -64,19 +64,6 @@ export default class FilterBar extends React.PureComponent {
case 'ArrowLeft':
element = items[index-1] || items[items.length-1];
break;
case 'Tab':
if (e.shiftKey) {
element = items[index-1] || items[items.length-1];
} else {
element = items[index+1] || items[0];
}
break;
case 'Home':
element = items[0];
break;
case 'End':
element = items[items.length-1];
break;
}
if (element) {