Skip to content

Commit a8cb9c1

Browse files
committed
Docs: Mention GetKeyName function
1 parent a99d7c3 commit a8cb9c1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ahkpy/key_state.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ def get_key_name_from_vk(vk: int) -> str:
137137
138138
>>> ahkpy.get_key_name_from_vk(112)
139139
'F1'
140+
141+
:command: `GetKeyName
142+
<https://www.autohotkey.com/docs/commands/GetKey.htm>`_
140143
"""
141144
return get_key_name(f"vk{vk}")
142145

@@ -146,6 +149,9 @@ def get_key_name_from_sc(sc: int) -> str:
146149
147150
>>> ahkpy.get_key_name_from_sc(59)
148151
'F1'
152+
153+
:command: `GetKeyName
154+
<https://www.autohotkey.com/docs/commands/GetKey.htm>`_
149155
"""
150156
return get_key_name(f"sc{sc}")
151157

0 commit comments

Comments
 (0)