Skip to content

Commit

Permalink
Update feature_macros.md (#15026)
Browse files Browse the repository at this point in the history
* Update feature_macros.md

Added a link to the usage of SAFE_RANGE as this wasn't clear to me when I visited this page in isolation.

* Fix typo

Co-authored-by: Nick Brassel <[email protected]>
  • Loading branch information
Buttenup and tzarc authored Dec 27, 2021
1 parent 2c8d46f commit db358d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/feature_macros.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ If yes, we send the string `"QMK is the best thing ever!"` to the computer via t
We return `true` to indicate to the caller that the key press we just processed should continue to be processed as normal (as we didn't replace or alter the functionality).
Finally, we define the keymap so that the first button activates our macro and the second button is just an escape button.
?>It is recommended to use the SAFE_RANGE macro as per [Customizing Functionality](custom_quantum_functions.md).
You might want to add more than one macro.
You can do that by adding another keycode and adding another case to the switch statement, like so:
Expand Down

0 comments on commit db358d1

Please sign in to comment.