mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 17:45:22 +00:00
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:
@@ -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]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user