Falko Schindler 1 năm trước cách đây
mục cha
commit
65460efc2f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      nicegui/events.py

+ 1 - 1
nicegui/events.py

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