Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS Brightness Alias #4836

Merged
merged 9 commits into from
Jan 18, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions docs/keycodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ This is a reference only. Each group of keys links to the page documenting their
|`KC_F11` | |F11 |
|`KC_F12` | |F12 |
|`KC_PSCREEN` |`KC_PSCR` |Print Screen |
|`KC_SCROLLLOCK` |`KC_SLCK` |Scroll Lock |
|`KC_PAUSE` |`KC_PAUS`, `KC_BRK` |Pause |
|`KC_SCROLLLOCK` |`KC_SLCK` |Scroll Lock (macOS: Brightness Down) |
germ marked this conversation as resolved.
Show resolved Hide resolved
|`KC_PAUSE` |`KC_PAUS`,`KC_BRK` |Pause (macOS: Brightness up.) |
germ marked this conversation as resolved.
Show resolved Hide resolved
germ marked this conversation as resolved.
Show resolved Hide resolved
|`KC_INSERT` |`KC_INS` |Insert |
|`KC_HOME` | |Home |
|`KC_PGUP` | |Page Up |
Expand Down Expand Up @@ -203,10 +203,8 @@ This is a reference only. Each group of keys links to the page documenting their
|`KC_WWW_FAVORITES` |`KC_WFAV` |Browser Favorites (Windows) |
|`KC_MEDIA_FAST_FORWARD`|`KC_MFFD` |Next Track (macOS) |
|`KC_MEDIA_REWIND` |`KC_MRWD` |Previous Track (macOS) |
|`KC_BRIGHTNESS_UP` |`KC_BRIU` |Brightness Up |
|`KC_BRIGHTNESS_DOWN` |`KC_BRID` |Brightness Down |
|`KC_MAC_BRIGHTNESS_UP` |`KC_MAC_BRIU` |Brightness Up (macOS) |
|`KC_MAC_BRIGHTNESS_DWN`|`KC_MAC_BRID` |Brightness Down (macOS) |
|`KC_BRIGHTNESS_UP` |`KC_BRIU` |Brightness Up (macOS: use `KC_BRMU`) |
|`KC_BRIGHTNESS_DOWN` |`KC_BRID` |Brightness Down (macOS: use `KC_BRMD`) |
germ marked this conversation as resolved.
Show resolved Hide resolved

## [Quantum Keycodes](quantum_keycodes.md#qmk-keycodes)

Expand Down
10 changes: 4 additions & 6 deletions tmk_core/common/keycode.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define KC_PEQL KC_KP_EQUAL
#define KC_PCMM KC_KP_COMMA

/* System Specfic */
germ marked this conversation as resolved.
Show resolved Hide resolved
#define KC_BRMU KC_SCROLLLOCK
#define KC_BRMD KC_PAUSE

/* Japanese specific */
#define KC_ZKHK KC_GRAVE
#define KC_RO KC_INT1
Expand Down Expand Up @@ -192,12 +196,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define KC_ACL1 KC_MS_ACCEL1
#define KC_ACL2 KC_MS_ACCEL2

/* System Specfic Aliases */
#define KC_MAC_BRIU KC_SLCK
#define KC_MAC_BRID KC_PAUS
#define KC_MAC_BRIGHTNESS_UP KC_SLCK
#define KC_MAC_BRIGHTNESS_DWN KC_PAUS

/* Keyboard/Keypad Page (0x07) */
enum hid_keyboard_keypad_usage {
KC_NO = 0x00,
Expand Down