(key: Key, input: string)
| 414 | |
| 415 | // Check if this is a kill command (Ctrl+K, Ctrl+U, Ctrl+W, or Meta+Backspace/Delete) |
| 416 | function isKillKey(key: Key, input: string): boolean { |
| 417 | if (key.ctrl && (input === 'k' || input === 'u' || input === 'w')) { |
| 418 | return true |
| 419 | } |
| 420 | if (key.meta && (key.backspace || key.delete)) { |
| 421 | return true |
| 422 | } |
| 423 | return false |
| 424 | } |
| 425 | |
| 426 | // Check if this is a yank command (Ctrl+Y or Alt+Y) |
| 427 | function isYankKey(key: Key, input: string): boolean { |