Implementation of hyper and meta

This commit is contained in:
Ravi R Kiran
2021-03-25 21:35:21 -05:00
parent 1e6fe7785a
commit 953253de99
16 changed files with 221 additions and 69 deletions

View File

@@ -6,7 +6,7 @@ import sys
from typing import List
from kitty.key_encoding import (
ALT, CTRL, PRESS, RELEASE, REPEAT, SHIFT, SUPER, KeyEvent,
ALT, CTRL, PRESS, RELEASE, REPEAT, SHIFT, SUPER, HYPER, META, KeyEvent,
encode_key_event
)
@@ -32,7 +32,9 @@ class KeysHandler(Handler):
SHIFT: 'Shift',
ALT: 'Alt',
CTRL: 'Ctrl',
SUPER: 'Super'}.items():
SUPER: 'Super',
HYPER: 'Hyper',
META: 'Meta'}.items():
if key_event.mods & m:
lmods.append(name)
mods = '+'.join(lmods)