Skip to content

Commit

Permalink
core: Fix mechanical locking supoort tmk#390
Browse files Browse the repository at this point in the history
  • Loading branch information
tmk authored and Dhertz committed Dec 9, 2016
1 parent 5c51885 commit fd20f47
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tmk_core/common/action.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "action_util.h"
#include "action.h"
#include "hook.h"
#include "wait.h"

#ifdef DEBUG_ACTION
#include "debug.h"
Expand Down Expand Up @@ -365,6 +366,7 @@ void register_code(uint8_t code)
#endif
add_key(KC_CAPSLOCK);
send_keyboard_report();
wait_ms(100);
del_key(KC_CAPSLOCK);
send_keyboard_report();
}
Expand All @@ -375,6 +377,7 @@ void register_code(uint8_t code)
#endif
add_key(KC_NUMLOCK);
send_keyboard_report();
wait_ms(100);
del_key(KC_NUMLOCK);
send_keyboard_report();
}
Expand All @@ -385,6 +388,7 @@ void register_code(uint8_t code)
#endif
add_key(KC_SCROLLLOCK);
send_keyboard_report();
wait_ms(100);
del_key(KC_SCROLLLOCK);
send_keyboard_report();
}
Expand Down Expand Up @@ -440,6 +444,7 @@ void unregister_code(uint8_t code)
#endif
add_key(KC_CAPSLOCK);
send_keyboard_report();
wait_ms(100);
del_key(KC_CAPSLOCK);
send_keyboard_report();
}
Expand All @@ -450,6 +455,7 @@ void unregister_code(uint8_t code)
#endif
add_key(KC_NUMLOCK);
send_keyboard_report();
wait_ms(100);
del_key(KC_NUMLOCK);
send_keyboard_report();
}
Expand All @@ -460,6 +466,7 @@ void unregister_code(uint8_t code)
#endif
add_key(KC_SCROLLLOCK);
send_keyboard_report();
wait_ms(100);
del_key(KC_SCROLLLOCK);
send_keyboard_report();
}
Expand Down

0 comments on commit fd20f47

Please sign in to comment.