#include "action_layer.h"
#include "action.h"
#include "action_macro.h"
+#include "wait.h"
#include "debug.h"
/* converts key to action */
-__attribute__((__weak__))
action_t action_for_key(uint8_t layer, keypos_t key)
{
- return action_for_key_default(layer, key);
-}
-
-action_t action_for_key_default(uint8_t layer, keypos_t key)
uint8_t keycode = keymap_key_to_keycode(layer, key);
switch (keycode) {
case KC_FN0 ... KC_FN31:
case KC_TRNS:
action.code = ACTION_TRANSPARENT;
break;
+ case KC_BOOTLOADER:
+ clear_keyboard();
+ wait_ms(50);
+ bootloader_jump(); // not return
+ break;
default:
action.code = ACTION_NO;
break;