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

FB9093710: fn key is ignored when posting a CGEvent #524

Open
godbout opened this issue Apr 3, 2024 · 1 comment
Open

FB9093710: fn key is ignored when posting a CGEvent #524

godbout opened this issue Apr 3, 2024 · 1 comment

Comments

@godbout
Copy link

godbout commented Apr 3, 2024

  • Date: 2021-05-01
  • Resolution: Open
  • Area: Core Graphics API
  • OS: oops
  • Type: Incorrect/Unexpected Behavior

Description

when posting an CGEvent with the fn key enabled, the posted event doesn't act like the fn key was pressed. in the below case, i'm supposed to post a forward delete key combination, but it does a backward delete instead. the fn is present in the CGEvent, but it is still not applied. all the other masks work well, so the rest of the code shouldn't be the issue.

to test, you can use the code below:

var eventTapCallback: CGEventTapCallBack = { proxy, _, event, _ in              
        let fnDeleteDown = CGEvent(
            keyboardEventSource: nil,
            virtualKey: 51,
            keyDown: true
        )
        
        fnDeleteDown?.flags = [.maskSecondaryFn]
        fnDeleteDown?.tapPostEvent(proxy)
        
        return nil
    }
@godbout
Copy link
Author

godbout commented Apr 3, 2024

answer from Apple:

After reviewing your feedback, we have some additional information for you, or some additional information, or action is necessary for this issue: 

Please verify this issue with macOS 14.4.1 Release and update your bug report with your results by logging into https://feedbackassistant.apple.com/ or by using the Feedback Assistant app.

macOS 14.4.1 Release (Build: 23E224)
https://developer.apple.com/download/
Posted Date: March 25, 2024

If resolved, you can close your feedback by choosing the Close Feedback menu item in the Actions pop-up in Feedback Assistant.

If the issue persists, please attach a new sysdiagnose captured in the latest build and attach it to the bug report. Thank you.

macOS sysdiagnose Instructions: 
https://developer.apple.com/services-account/download?path=/OS_X/OS_X_Logs/sysdiagnose_Logging_Instructions.pdf

___________________________________
For a complete list of logging instructions visit:
https://developer.apple.com/bug-reporting/profiles-and-logs/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant