Skip to content

Commit 2790eac

Browse files
committed
fix typing
1 parent 318225b commit 2790eac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/prompt_toolkit/input/kitty_keyboard.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def _apply_modifiers(base: Keys, ctrl: bool, shift: bool) -> Keys:
275275
if shift:
276276
return Keys.ShiftEscape
277277
return Keys.Escape
278-
278+
ctrl_key: Keys | None
279279
if base in _NAV_MAP:
280280
shift_key, ctrl_key, ctrl_shift_key = _NAV_MAP[base]
281281
if ctrl and shift:
@@ -291,7 +291,7 @@ def _apply_modifiers(base: Keys, ctrl: bool, shift: bool) -> Keys:
291291
# emulate that here; Shift+Fn just returns Fn for now.
292292
if base.value.startswith("f") and base.value[1:].isdigit():
293293
if ctrl:
294-
ctrl_key: Keys | None = getattr(Keys, "Control" + base.name, None)
294+
ctrl_key = getattr(Keys, "Control" + base.name, None)
295295
if ctrl_key is not None:
296296
return ctrl_key
297297
return base

0 commit comments

Comments
 (0)