Browse Source

Allow the "00" keypad key to act like a repeating 0 when held down.

Olivier 9 năm trước cách đây
mục cha
commit
6dc48384f3
2 tập tin đã thay đổi với 1106 bổ sung1103 xóa
  1. 1103 1102
      keyboard/ergodox_ez/keymaps/bepo/bepo.hex
  2. 3 1
      keyboard/ergodox_ez/keymaps/bepo/keymap.c

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1103 - 1102
keyboard/ergodox_ez/keymaps/bepo/bepo.hex


+ 3 - 1
keyboard/ergodox_ez/keymaps/bepo/keymap.c

@@ -169,7 +169,9 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
   switch(id) {
     case KP_00:
       if (record->event.pressed) {
-        return MACRO( D(KP_0), U(KP_0), D(KP_0), U(KP_0), END );
+        return MACRO( D(KP_0), U(KP_0), D(KP_0), END );
+      } else {
+        return MACRO( U(KP_0), END );
       }
       break;
   }