@@ -88,7 +88,7 @@ Bear in mind that anti-cheat software might detect macros in games.
8888> Examples :
8989>
9090> ```c #
91- > modify (Control_L , k (a ).k (x ))
91+ > modify (Control_L , key (a ).key (x ))
9292> ```
9393
9494### hold
@@ -107,9 +107,12 @@ Bear in mind that anti-cheat software might detect macros in games.
107107
108108### hold_keys
109109
110- > Holds down all the provided symbols like a combination .
110+ > Holds down all the provided symbols like a combination , and releases them when the
111+ > actual key on your keyboard is released .
111112>
112113> An arbitrary number of symbols can be provided .
114+ >
115+ > When provided with a single key , it will behave just like a regular keyboard key .
113116>
114117> ```c #
115118> hold_keys (* symbols : str )
@@ -121,6 +124,7 @@ Bear in mind that anti-cheat software might detect macros in games.
121124> hold_keys (KEY_LEFTCTRL , KEY_A )
122125> hold_keys (Control_L , Alt_L , Delete )
123126> set (foo , KEY_A ).hold_keys ($foo )
127+ > hold_keys (KEY_B )
124128> ```
125129
126130### mouse
@@ -237,7 +241,7 @@ Bear in mind that anti-cheat software might detect macros in games.
237241> Examples :
238242>
239243> ```c #
240- > if_capslock (key (KEY_1 ), key (KEY_2 ))
244+ > if_capslock (hold_keys (KEY_1 ), hold_keys (KEY_2 ))
241245> ```
242246
243247### if_numlock
@@ -251,7 +255,7 @@ Bear in mind that anti-cheat software might detect macros in games.
251255> Examples :
252256>
253257> ```c #
254- > if_numlock (key (KEY_3 ), key (KEY_4 ))
258+ > if_numlock (hold_keys (KEY_3 ), hold_keys (KEY_4 ))
255259> ```
256260
257261### if_tap
0 commit comments