Post

Replies

Boosts

Views

Activity

Comment on Simulating Fn (Globe) + Arrow Key Events Ignoring Fn Modifier
I remapped two hardware keys using the IOHIDEventSystemClient API to ones corresponding to the Fn (Globe) and then manually tested their behavior. The 0xFF0100000030 is equivalent to kHIDUsage_AppleVendorKeyboard_Language, part of the AppleVendor Keyboard Page (0xff01) usage page, and the 0xFF00000003 is equivalent to kHIDUsage_AV_TopCase_KeyboardFn, part of the AppleVendor Page Top Case (0x00ff). Reference: Apple’s official HID usage tables
Topic: UI Frameworks SubTopic: General Tags:
Oct ’24
Comment on Simulating Fn (Globe) + Arrow Key Events Ignoring Fn Modifier
I remapped two hardware keys using the IOHIDEventSystemClient API to ones corresponding to the Fn (Globe) and then manually tested their behavior. The 0xFF0100000030 is equivalent to kHIDUsage_AppleVendorKeyboard_Language, part of the AppleVendor Keyboard Page (0xff01) usage page, and the 0xFF00000003 is equivalent to kHIDUsage_AV_TopCase_KeyboardFn, part of the AppleVendor Page Top Case (0x00ff). Reference: Apple’s official HID usage tables
Topic: UI Frameworks SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’24
Comment on Selectively Removing Default Menu Bar Menus (like File, Edit, View, Window)
They won’t. The highest voted solution is quite inelegant since it’s hardcoding strings, and my app is localized in numerous languages. I would need to find the menu names for each language and then match the strings. The other, where someone suggested using UIMenuBuilder – that API isn’t available on macOS, and I’m not using Mac Catalyst.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’23