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

F13- F24 keys not working #49

Closed
LevitateGamer opened this issue Jun 25, 2021 · 2 comments
Closed

F13- F24 keys not working #49

LevitateGamer opened this issue Jun 25, 2021 · 2 comments
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@LevitateGamer
Copy link

It will press f13-f24 but windows will not receive it

@edgar-bonet
Copy link
Collaborator

It will press f13-f24

Then it is not an issue with this library. It's an issue with Windows, or with how it is configured to handle (or ignore) those keys.

@per1234
Copy link
Contributor

per1234 commented Mar 6, 2022

Closing as working fine for me. I see there was an issue like this some years ago, but it was fixed by #10.

I used this thing as an accessible cross-platform way to verify keypresses:

https://codepen.io/QDeltaE/pen/PjXWZr

Test sketch:

#include <Keyboard.h>

const byte enablePin = 2;
const byte LEDPin = LED_BUILTIN;

void setup() {
  pinMode(enablePin, INPUT_PULLUP);
  pinMode(LEDPin, OUTPUT);
  Keyboard.begin();
}

void loop() {
  if (digitalRead(enablePin) == LOW) {
    Keyboard.press(KEY_F16);
    digitalWrite(LEDPin, HIGH);
    delay(500);
    Keyboard.releaseAll();
    digitalWrite(LEDPin, LOW);
    delay(500);
  }
}

"Keyboard Debugger" log:

>Keydown ↓ Key: "F16" KeyCode: 127
>Keyup   ↑ Key: "F16" KeyCode: 127
>Keydown ↓ Key: "F16" KeyCode: 127
>Keyup   ↑ Key: "F16" KeyCode: 127
>Keydown ↓ Key: "F16" KeyCode: 127
>Keyup   ↑ Key: "F16" KeyCode: 127
>Keydown ↓ Key: "F16" KeyCode: 127
>Keyup   ↑ Key: "F16" KeyCode: 127

@per1234 per1234 closed this as completed Mar 6, 2022
@per1234 per1234 added conclusion: invalid Issue/PR not valid topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project conclusion: resolved Issue was resolved and removed conclusion: invalid Issue/PR not valid labels Mar 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

3 participants