cleanup
This commit is contained in:
parent
f086a78864
commit
84f1b2ae06
10
kmk/keys.py
10
kmk/keys.py
@ -205,7 +205,7 @@ def maybe_make_numpad_key(candidate):
|
|||||||
return make_key(code=code, names=names)
|
return make_key(code=code, names=names)
|
||||||
|
|
||||||
|
|
||||||
def maybe_make_shifted_key(candidate, *args, **kwargs):
|
def maybe_make_shifted_key(candidate):
|
||||||
codes = (
|
codes = (
|
||||||
(30, ('EXCLAIM', 'EXLM', '!')),
|
(30, ('EXCLAIM', 'EXLM', '!')),
|
||||||
(31, ('AT', '@')),
|
(31, ('AT', '@')),
|
||||||
@ -232,12 +232,10 @@ def maybe_make_shifted_key(candidate, *args, **kwargs):
|
|||||||
|
|
||||||
for code, names in codes:
|
for code, names in codes:
|
||||||
if candidate in names:
|
if candidate in names:
|
||||||
return make_key(
|
return make_key(code=code, names=names, has_modifiers={KC.LSFT.code})
|
||||||
code=code, names=names, has_modifiers={KC.LSFT.code}, *args, **kwargs
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def maybe_make_international_key(candidate, *args, **kwargs):
|
def maybe_make_international_key(candidate):
|
||||||
codes = (
|
codes = (
|
||||||
(50, ('NONUS_HASH', 'NUHS')),
|
(50, ('NONUS_HASH', 'NUHS')),
|
||||||
(100, ('NONUS_BSLASH', 'NUBS')),
|
(100, ('NONUS_BSLASH', 'NUBS')),
|
||||||
@ -264,7 +262,7 @@ def maybe_make_international_key(candidate, *args, **kwargs):
|
|||||||
|
|
||||||
for code, names in codes:
|
for code, names in codes:
|
||||||
if candidate in names:
|
if candidate in names:
|
||||||
return make_key(code=code, names=names, *args, **kwargs)
|
return make_key(code=code, names=names)
|
||||||
|
|
||||||
|
|
||||||
KEY_GENERATORS = (
|
KEY_GENERATORS = (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user