You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In other editors that I use on macOS, such as Visual Studio Code, fn (the globe key on Apple keyboards) can be used as a modifier with keyboard shortcuts:
Despite the warning, the combination does work:
Screen.Recording.2025-01-23.at.20.08.35.mov
As far as I know:
on Windows (and Linux?), a "function key" is not defined as a key, since many generic keyboards use it as a reserved modifier in hardware/drivers to do their own functionality (such as backlight, volume etc.)
I do not have access to the closed beta of Jai, so I am unsure whether this is something that's more relevant for an input-related Jai module that's being used here.
I'm not sure whether supporting this for macOS alone would be worth it either, considering other platforms don't define an fn key/modifier the same way.
case "{shift}"; combo.ignore.shift_pressed = true;
case "{alt}"; combo.ignore.alt_pressed = true;
case "{cmd}"; combo.ignore.cmd_meta_pressed = true;
case "{meta}"; combo.ignore.cmd_meta_pressed = true;
case "{super}"; combo.ignore.cmd_meta_pressed = true;
The text was updated successfully, but these errors were encountered:
xezrunner
changed the title
Missing support for macOS fn (Globe) key in keymap
Feature request: Support for macOS fn (globe) key in keymap
Jan 23, 2025
xezrunner
changed the title
Feature request: Support for macOS fn (globe) key in keymap
Feature request: support macOS fn (globe) key in keymap
Jan 23, 2025
In other editors that I use on macOS, such as Visual Studio Code,
fn
(the globe key on Apple keyboards) can be used as a modifier with keyboard shortcuts:Despite the warning, the combination does work:
Screen.Recording.2025-01-23.at.20.08.35.mov
As far as I know:
fn
(globe) key, at least on first-party Apple keyboards, is a first-class, valid modifier to use in combination with other keys, at least usingNSEvent
(https://developer.apple.com/documentation/appkit/nsevent/modifierflags-swift.struct/function)I do not have access to the closed beta of Jai, so I am unsure whether this is something that's more relevant for an input-related Jai module that's being used here.
I'm not sure whether supporting this for macOS alone would be worth it either, considering other platforms don't define an
fn
key/modifier the same way.focus/src/config_parser.jai
Lines 1249 to 1262 in 7e88514
The text was updated successfully, but these errors were encountered: