mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
Fix issue #4876: [Bug]: Entering tab into the bash command line screws it up
This commit is contained in:
parent
090771674c
commit
421d123f77
11
frontend/server.log
Normal file
11
frontend/server.log
Normal file
@ -0,0 +1,11 @@
|
||||
|
||||
> openhands-frontend@0.13.0 dev
|
||||
> npm run make-i18n && cross-env VITE_MOCK_API=false remix vite:dev
|
||||
|
||||
|
||||
> openhands-frontend@0.13.0 make-i18n
|
||||
> node scripts/make-i18n-translations.cjs
|
||||
|
||||
➜ Local: http://localhost:3001/
|
||||
➜ Network: use --host to expose
|
||||
➜ press h + enter to show help
|
||||
@ -101,6 +101,10 @@ export const useTerminal = (
|
||||
if (commandBuffer.length > 0) {
|
||||
commandBuffer = handleBackspace(commandBuffer);
|
||||
}
|
||||
} else if (domEvent.key === "Tab") {
|
||||
// Swallow tab key and convert to space
|
||||
commandBuffer += " ";
|
||||
terminal.current?.write(" ");
|
||||
} else {
|
||||
// Ignore paste event
|
||||
if (key.charCodeAt(0) === 22) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user