macro_key: BasicAction -> BasicKey

main
Ilya Zhuravlev 2020-12-24 09:49:39 -05:00
parent fb41fa3156
commit 897a250ca0
1 changed files with 5 additions and 5 deletions

View File

@ -2,12 +2,12 @@
from keycodes import keycode_label
class BasicAction:
class BasicKey:
pass
class KeyDown(BasicAction):
class KeyDown(BasicKey):
def __init__(self, keycode):
self.keycode = keycode
@ -19,7 +19,7 @@ class KeyDown(BasicAction):
return isinstance(other, KeyDown) and other.keycode == self.keycode
class KeyUp(BasicAction):
class KeyUp(BasicKey):
def __init__(self, keycode):
self.keycode = keycode
@ -31,7 +31,7 @@ class KeyUp(BasicAction):
return isinstance(other, KeyUp) and other.keycode == self.keycode
class KeyTap(BasicAction):
class KeyTap(BasicKey):
def __init__(self, keycode):
self.keycode = keycode
@ -43,7 +43,7 @@ class KeyTap(BasicAction):
return isinstance(other, KeyTap) and other.keycode == self.keycode
class KeyString(BasicAction):
class KeyString(BasicKey):
def __init__(self, string):
self.string = string