mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 11:41:04 +00:00
fix(input): Handle numpad enter key in kitty protocol terminals (#6341)
Co-authored-by: Jacob Richman <jacob314@gmail.com>
This commit is contained in:
parent
2c07dc0757
commit
f5a5cdd973
3 changed files with 319 additions and 1 deletions
|
|
@ -22,6 +22,8 @@ import { PassThrough } from 'stream';
|
|||
import {
|
||||
BACKSLASH_ENTER_DETECTION_WINDOW_MS,
|
||||
KITTY_CTRL_C,
|
||||
KITTY_KEYCODE_ENTER,
|
||||
KITTY_KEYCODE_NUMPAD_ENTER,
|
||||
MAX_KITTY_SEQUENCE_LENGTH,
|
||||
} from '../utils/platformConstants.js';
|
||||
|
||||
|
|
@ -132,7 +134,10 @@ export function KeypressProvider({
|
|||
};
|
||||
}
|
||||
|
||||
if (keyCode === 13) {
|
||||
if (
|
||||
keyCode === KITTY_KEYCODE_ENTER ||
|
||||
keyCode === KITTY_KEYCODE_NUMPAD_ENTER
|
||||
) {
|
||||
return {
|
||||
name: 'return',
|
||||
ctrl,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue