mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-15 07:41:03 -07:00
refactor(cli): rename 'return' key to 'enter' internally (#21796)
This commit is contained in:
committed by
GitHub
parent
ec7773eb7b
commit
14412c3a72
@@ -287,7 +287,7 @@ describe('TextInput', () => {
|
||||
|
||||
await act(async () => {
|
||||
keypressHandler({
|
||||
name: 'return',
|
||||
name: 'enter',
|
||||
shift: false,
|
||||
alt: false,
|
||||
ctrl: false,
|
||||
@@ -314,7 +314,7 @@ describe('TextInput', () => {
|
||||
|
||||
await act(async () => {
|
||||
keypressHandler({
|
||||
name: 'return',
|
||||
name: 'enter',
|
||||
shift: false,
|
||||
alt: false,
|
||||
ctrl: false,
|
||||
@@ -339,7 +339,7 @@ describe('TextInput', () => {
|
||||
|
||||
await act(async () => {
|
||||
keypressHandler({
|
||||
name: 'return',
|
||||
name: 'enter',
|
||||
shift: false,
|
||||
alt: false,
|
||||
ctrl: false,
|
||||
|
||||
@@ -1533,7 +1533,7 @@ describe('useTextBuffer', () => {
|
||||
const { result } = renderHook(() => useTextBuffer({ viewport }));
|
||||
act(() => {
|
||||
result.current.handleInput({
|
||||
name: 'return',
|
||||
name: 'enter',
|
||||
shift: false,
|
||||
alt: false,
|
||||
ctrl: false,
|
||||
@@ -1789,7 +1789,7 @@ describe('useTextBuffer', () => {
|
||||
const { result } = renderHook(() => useTextBuffer({ viewport }));
|
||||
act(() => {
|
||||
result.current.handleInput({
|
||||
name: 'return',
|
||||
name: 'enter',
|
||||
shift: true,
|
||||
alt: false,
|
||||
ctrl: false,
|
||||
@@ -2290,7 +2290,7 @@ Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots
|
||||
);
|
||||
act(() => {
|
||||
result.current.handleInput({
|
||||
name: 'return',
|
||||
name: 'enter',
|
||||
shift: false,
|
||||
alt: false,
|
||||
ctrl: false,
|
||||
|
||||
Reference in New Issue
Block a user