Skip to content

Commit 4d09ac6

Browse files
authored
Make on_key_release args consistent with on_key_press (#2570)
1 parent f3ad4a6 commit 4d09ac6

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

arcade/application.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1478,7 +1478,7 @@ def on_key_press(self, symbol: int, modifiers: int) -> bool | None:
14781478
"""
14791479
return False
14801480

1481-
def on_key_release(self, _symbol: int, _modifiers: int) -> bool | None:
1481+
def on_key_release(self, symbol: int, modifiers: int) -> bool | None:
14821482
"""
14831483
Called once when a key gets released.
14841484
@@ -1493,9 +1493,9 @@ def on_key_release(self, _symbol: int, _modifiers: int) -> bool | None:
14931493
* Showing which keys are currently pressed down
14941494
14951495
Args:
1496-
_symbol:
1496+
symbol:
14971497
Key that was released
1498-
_modifiers:
1498+
modifiers:
14991499
Bitwise 'and' of all modifiers (shift, ctrl, num lock) active
15001500
during this event. See :ref:`keyboard_modifiers`.
15011501
"""

arcade/sections.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -420,13 +420,13 @@ def on_key_press(self, symbol: int, modifiers: int):
420420
"""
421421
pass
422422

423-
def on_key_release(self, _symbol: int, _modifiers: int):
423+
def on_key_release(self, symbol: int, modifiers: int):
424424
"""
425425
Called when the user releases a key.
426426
427427
Args:
428-
_symbol: the key released
429-
_modifiers: the modifiers pressed
428+
symbol: the key released
429+
modifiers: the modifiers pressed
430430
"""
431431
pass
432432

0 commit comments

Comments
 (0)