We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11407b2 commit 895ea31Copy full SHA for 895ea31
cli/src/components/ask-user/hooks/use-keyboard-navigation.ts
@@ -136,8 +136,10 @@ export function useKeyboardNavigation(params: KeyboardNavigationParams) {
136
!key.meta &&
137
!key.shift
138
) {
139
- // Don't handle space in text input (allow typing spaces)
+ // Handle space in text input: add space character and return
140
if (isFocusOnTextInput(focus) && key.name === 'space') {
141
+ const currentText = otherTexts[currentQuestionIndex] || ''
142
+ onOtherTextChange(currentQuestionIndex, currentText + ' ')
143
return
144
}
145
0 commit comments