Skip to content

Commit e057b4f

Browse files
committed
Standardize key comparison operators in the chat input handler
1 parent 78fa872 commit e057b4f

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎packages/ui/src/components/editor/panel/ChatInput/hooks/use-handlers.ts‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -401,28 +401,28 @@ export const use_handlers = (
401401
const handle_key_down = (e: React.KeyboardEvent<HTMLDivElement>) => {
402402
const { key, shiftKey, ctrlKey, metaKey } = e
403403

404-
if (key === 'Tab' && !shiftKey) {
404+
if (key == 'Tab' && !shiftKey) {
405405
handle_tab_key(e)
406406
return
407407
}
408408

409-
if (key === 'Backspace') {
409+
if (key == 'Backspace') {
410410
handle_backspace_key(e)
411411
return
412412
}
413413

414-
if (key === 'Enter' && !shiftKey) {
414+
if (key == 'Enter' && !shiftKey) {
415415
e.preventDefault()
416416
handle_submit(e)
417417
return
418418
}
419419

420-
if ((key === 'ArrowUp' || key === 'ArrowDown') && is_history_enabled) {
420+
if ((key == 'ArrowUp' || key == 'ArrowDown') && is_history_enabled) {
421421
handle_history_navigation(e)
422422
return
423423
}
424424

425-
if (key === 'z' && (ctrlKey || metaKey) && !shiftKey) {
425+
if (key == 'z' && (ctrlKey || metaKey) && !shiftKey) {
426426
handle_undo_at_sign(e)
427427
return
428428
}

‎packages/vscode/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "gemini-coder",
33
"displayName": "Code Web Chat",
44
"description": "AI coding without agents (CWC)",
5-
"version": "1.544.0",
5+
"version": "1.545.0",
66
"scripts": {
77
"build": "npx vsce package --no-dependencies",
88
"vscode:prepublish": "rimraf out && npm run compile",

0 commit comments

Comments
 (0)