list -> set for efficiency

main
Nicholas Hope 2023-05-01 17:16:30 -04:00
parent 15330c6901
commit 41273df385
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
validKeyList = [ validKeyList = {
# top row # top row
'escape', 'f1', 'f2', 'f3', 'f4', 'f5', 'f6', 'f7', 'f8', 'f9', 'f10', 'f11', 'f12', 'escape', 'f1', 'f2', 'f3', 'f4', 'f5', 'f6', 'f7', 'f8', 'f9', 'f10', 'f11', 'f12',
# keyboard # keyboard
@ -16,7 +16,7 @@ validKeyList = [
# arrows # arrows
'uparrow', 'downarrow', 'uparrow', 'downarrow',
'leftarrow', 'rightarrow' 'leftarrow', 'rightarrow'
] }
popErrors = (AttributeError, KeyError, TypeError) popErrors = (AttributeError, KeyError, TypeError)
@ -636,4 +636,4 @@ class Bind(ScriptBind):
# all inheritances have been completed # all inheritances have been completed
ScriptBind.bindTypes = ScriptBind.__subclasses__() ScriptBind.bindTypes = ScriptBind.__subclasses__()
Double.bindNames = [ bind.__name__.lower() for bind in ScriptBind.bindTypes ] Double.bindNames = [ bind.__name__.lower() for bind in ScriptBind.bindTypes ]