(text: string)
| 1245 | return input; |
| 1246 | }, []); |
| 1247 | function insertTextAtCursor(text: string) { |
| 1248 | // Push current state to buffer before inserting |
| 1249 | pushToBuffer(input, cursorOffset, pastedContents); |
| 1250 | const newInput = input.slice(0, cursorOffset) + text + input.slice(cursorOffset); |
| 1251 | trackAndSetInput(newInput); |
| 1252 | setCursorOffset(cursorOffset + text.length); |
| 1253 | } |
| 1254 | const doublePressEscFromEmpty = useDoublePress(() => {}, () => onShowMessageSelector()); |
| 1255 | |
| 1256 | // Function to get the queued command for editing. Returns true if commands were popped. |
no outgoing calls
no test coverage detected