From f4dcb0d8fd544d0ce97e399aa75fed2762ec591b Mon Sep 17 00:00:00 2001 From: jamesbaber1 <31859220+jamesbaber1@users.noreply.github.com> Date: Thu, 14 Sep 2023 10:12:33 -0500 Subject: [PATCH] - handled upper lowercase --- lightweight_charts/abstract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightweight_charts/abstract.py b/lightweight_charts/abstract.py index ea95553..40b5c06 100644 --- a/lightweight_charts/abstract.py +++ b/lightweight_charts/abstract.py @@ -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