Ver Fonte

fix typo

Falko Schindler há 1 ano atrás
pai
commit
65460efc2f
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      nicegui/events.py

+ 1 - 1
nicegui/events.py

@@ -181,7 +181,7 @@ class KeyboardKey:
     @property
     @property
     def enter(self) -> bool:
     def enter(self) -> bool:
         """Whether the key is the enter key."""
         """Whether the key is the enter key."""
-        return self.name == 'enter'
+        return self.name == 'Enter'
 
 
     @property
     @property
     def shift(self) -> bool:
     def shift(self) -> bool: