Clean up, add sgr extension to api

This commit is contained in:
Daniel Imms
2026-01-10 04:38:06 -08:00
parent 50b0f3d7ee
commit 73cba6dda3
4 changed files with 105 additions and 103 deletions
-1
View File
@@ -206,7 +206,6 @@ function encodeModifiers(ev: IKeyboardEvent): number {
if (ev.altKey) mods |= KittyKeyboardModifiers.ALT;
if (ev.ctrlKey) mods |= KittyKeyboardModifiers.CTRL;
if (ev.metaKey) mods |= KittyKeyboardModifiers.SUPER;
// Note: getModifierState would be needed for CAPS_LOCK/NUM_LOCK but not in IKeyboardEvent
return mods > 0 ? mods + 1 : 0;
}