diff options
Diffstat (limited to 'common/keymap.c')
| -rw-r--r-- | common/keymap.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/keymap.c b/common/keymap.c index 9f4fab521..d48923808 100644 --- a/common/keymap.c +++ b/common/keymap.c | |||
| @@ -20,6 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 20 | #include "action_layer.h" | 20 | #include "action_layer.h" |
| 21 | #include "action.h" | 21 | #include "action.h" |
| 22 | #include "action_macro.h" | 22 | #include "action_macro.h" |
| 23 | #include "wait.h" | ||
| 23 | #include "debug.h" | 24 | #include "debug.h" |
| 24 | 25 | ||
| 25 | 26 | ||
| @@ -140,6 +141,11 @@ static action_t keycode_to_action(uint8_t keycode) | |||
| 140 | case KC_TRNS: | 141 | case KC_TRNS: |
| 141 | action.code = ACTION_TRANSPARENT; | 142 | action.code = ACTION_TRANSPARENT; |
| 142 | break; | 143 | break; |
| 144 | case KC_BOOTLOADER: | ||
| 145 | clear_keyboard(); | ||
| 146 | wait_ms(50); | ||
| 147 | bootloader_jump(); // not return | ||
| 148 | break; | ||
| 143 | default: | 149 | default: |
| 144 | action.code = ACTION_NO; | 150 | action.code = ACTION_NO; |
| 145 | break; | 151 | break; |
