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

Add some usages needed for ChromeOS hosts #8996

Merged
merged 1 commit into from
May 3, 2020

Conversation

spidey3
Copy link
Contributor

@spidey3 spidey3 commented May 2, 2020

Description

This adds two Consumer Page usages that are used often in ChromeOS.

  • AL_CONTROL_PANEL (0x19F) - On ChromeOS this opens the settings tray.
  • AL_ASSISTANT (0x1CB) - On ChromeOS this starts the Google Assistant.

Many Chromebooks have dedicated keys for these; this will allow them in QMK.

Note, owing the the shortage of available KC_ keycodes, there is no mapping to these now. To use them, you will need to implement your own custom keycode, and can call this to send the code:

if (record->event.pressed) {
    host_consumer_send(AL_ASSISTANT);
} else {
    host_consumer_send(0);
}

Types of Changes

  • Core
  • Bugfix
  • New feature
  • Enhancement/optimization
  • Keyboard (addition or update)
  • Keymap/layout/userspace (addition or update)
  • Documentation

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • I have tested the changes and verified that they work and don't break anything (as well as I can manage).

@zvecr zvecr requested review from fauxpark and a team May 2, 2020 16:08
@zvecr zvecr added the core label May 2, 2020
@fauxpark fauxpark merged commit 2e6959e into qmk:master May 3, 2020
@fauxpark
Copy link
Member

fauxpark commented May 3, 2020

Thanks!

violet-fish pushed a commit to violet-fish/qmk_firmware that referenced this pull request May 3, 2020
@spidey3 spidey3 deleted the consumer_codes branch May 11, 2020 19:52
bitherder pushed a commit to bitherder/qmk_firmware that referenced this pull request May 15, 2020
drashna pushed a commit to zsa/qmk_firmware that referenced this pull request May 24, 2020
sowbug pushed a commit to sowbug/qmk_firmware that referenced this pull request May 24, 2020
fdidron pushed a commit to zsa/qmk_firmware that referenced this pull request Jun 12, 2020
turky pushed a commit to turky/qmk_firmware that referenced this pull request Jun 13, 2020
jakobaa pushed a commit to jakobaa/qmk_firmware that referenced this pull request Jul 7, 2020
sjmacneil pushed a commit to sjmacneil/qmk_firmware that referenced this pull request Feb 19, 2021
BorisTestov pushed a commit to BorisTestov/qmk_firmware that referenced this pull request May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants