terminal: remove questionable tabindex

Not sure if this has a purpose I don't know about but removing it gives
better behavior when using keyboard navigation.
This commit is contained in:
David Lechner
2022-05-18 10:13:31 -05:00
parent 0839392183
commit df6e93407e
+4
View File
@@ -115,6 +115,10 @@ const Terminal: React.FC = (_props) => {
xterm.open(terminalRef.current);
fitAddon.fit();
// HACK: remove tabindex from main xterm element, otherwise it takes
// two tabs to get to the text area
xterm.element?.removeAttribute('tabindex');
return () => xterm.dispose();
}, [xterm]);