- handled upper lowercase

This commit is contained in:
jamesbaber1
2023-09-14 10:12:33 -05:00
parent 2219b32bd6
commit f4dcb0d8fd

View File

@ -856,7 +856,7 @@ class AbstractChart(Candlestick, Pane):
for key in keys:
# when there is no modifier key use the key value
condition = f"event.key === '{key}'"
condition = f"event.key.toLowerCase() === '{str(key).lower()}'"
# if there is a modifier key
if modifier_key:
# use the key code instead