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

Recently F-keys and utility F-keys (brightness, volume etc) are mixed up #4017

Open
alber70g opened this issue Nov 18, 2024 · 3 comments
Open

Comments

@alber70g
Copy link

I'm using an external keyboard. When I have the keyboard connected, I want my function keys to work the same as on the MacBook keys, which is with keyboard setting "Use F1 F2 etc. keys as standard function keys" OFF.

I have another complex modification, that combines RIGHT_SHIFT with the top row (numbers 1-0, - and =) to be regular F1-F12.

However, recently this stopped working, and the RIGHT_SHIFT+top-row started behaving just as the F-keys.

Anything that can be done to prevent this?

These are my current settings, maybe I'm doing something wrong. Which seems unlikely, as it used to be working earlier.

MacOS Settings

"Use F1 F2 etc. keys as standard function keys" -> OFF

Complex modification

RShift + Number keys to F-keys
{
    "description": "RShift + Numbers to F-keys",
    "manipulators": [
	{
	    "from": {
		"key_code": "1",
		"modifiers": {
		    "mandatory": ["right_shift"],
		    "optional": ["fn", "left_gui", "left_control", "left_alt", "right_gui", "right_control", "right_alt", "left_shift"]
		}
	    },
	    "to": [{ "key_code": "f1" }],
	    "type": "basic"
	},
	{
	    "from": {
		"key_code": "2",
		"modifiers": {
		    "mandatory": ["right_shift"],
		    "optional": ["fn", "left_gui", "left_control", "left_alt", "right_gui", "right_control", "right_alt", "left_shift"]
		}
	    },
	    "to": [{ "key_code": "f2" }],
	    "type": "basic"
	},
	{
	    "from": {
		"key_code": "3",
		"modifiers": {
		    "mandatory": ["right_shift"],
		    "optional": ["fn", "left_gui", "left_control", "left_alt", "right_gui", "right_control", "right_alt", "left_shift"]
		}
	    },
	    "to": [{ "key_code": "f3" }],
	    "type": "basic"
	},
	{
	    "from": {
		"key_code": "4",
		"modifiers": {
		    "mandatory": ["right_shift"],
		    "optional": ["fn", "left_gui", "left_control", "left_alt", "right_gui", "right_control", "right_alt", "left_shift"]
		}
	    },
	    "to": [{ "key_code": "f4" }],
	    "type": "basic"
	},
	{
	    "from": {
		"key_code": "5",
		"modifiers": {
		    "mandatory": ["right_shift"],
		    "optional": ["fn", "left_gui", "left_control", "left_alt", "right_gui", "right_control", "right_alt", "left_shift"]
		}
	    },
	    "to": [{ "key_code": "f5" }],
	    "type": "basic"
	},
	{
	    "from": {
		"key_code": "6",
		"modifiers": {
		    "mandatory": ["right_shift"],
		    "optional": ["fn", "left_gui", "left_control", "left_alt", "right_gui", "right_control", "right_alt", "left_shift"]
		}
	    },
	    "to": [{ "key_code": "f6" }],
	    "type": "basic"
	},
	{
	    "from": {
		"key_code": "7",
		"modifiers": {
		    "mandatory": ["right_shift"],
		    "optional": ["fn", "left_gui", "left_control", "left_alt", "right_gui", "right_control", "right_alt", "left_shift"]
		}
	    },
	    "to": [{ "key_code": "f7" }],
	    "type": "basic"
	},
	{
	    "from": {
		"key_code": "8",
		"modifiers": {
		    "mandatory": ["right_shift"],
		    "optional": ["fn", "left_gui", "left_control", "left_alt", "right_gui", "right_control", "right_alt", "left_shift"]
		}
	    },
	    "to": [{ "key_code": "f8" }],
	    "type": "basic"
	},
	{
	    "from": {
		"key_code": "9",
		"modifiers": {
		    "mandatory": ["right_shift"],
		    "optional": ["fn", "left_gui", "left_control", "left_alt", "right_gui", "right_control", "right_alt", "left_shift"]
		}
	    },
	    "to": [{ "key_code": "f9" }],
	    "type": "basic"
	},
	{
	    "from": {
		"key_code": "0",
		"modifiers": {
		    "mandatory": ["right_shift"],
		    "optional": ["fn", "left_gui", "left_control", "left_alt", "right_gui", "right_control", "right_alt", "left_shift"]
		}
	    },
	    "to": [{ "key_code": "f10" }],
	    "type": "basic"
	},
	{
	    "from": {
		"key_code": "hyphen",
		"modifiers": {
		    "mandatory": ["right_shift"],
		    "optional": ["fn", "left_gui", "left_control", "left_alt", "right_gui", "right_control", "right_alt", "left_shift"]
		}
	    },
	    "to": [{ "key_code": "f11" }],
	    "type": "basic"
	},
	{
	    "from": {
		"key_code": "equal_sign",
		"modifiers": {
		    "mandatory": ["right_shift"],
		    "optional": ["fn", "left_gui", "left_control", "left_alt", "right_gui", "right_control", "right_alt", "left_shift"]
		}
	    },
	    "to": [{ "key_code": "f12" }],
	    "type": "basic"
	}
    ]
}

Video

out-deduped-v2.mp4
@tekezo
Copy link
Member

tekezo commented Nov 21, 2024

@alber70g
Copy link
Author

alber70g commented Nov 21, 2024

Sorry, I might be ignorant, but do you want my keycaps? 😂
What do you mean? I have configured shift+1 to send f1.

Oh wait... you mean the "to" part of below snippet should send fn+f1.... ah I get it now. Might help to be less cryptic <3

    {
	    "from": {
		"key_code": "1",
		"modifiers": {
		    "mandatory": ["right_shift"],
		    "optional": ["fn", "left_gui", "left_control", "left_alt", "right_gui", "right_control", "right_alt", "left_shift"]
		}
	    },
	    "to": [{ "key_code": "f1" }],
	    "type": "basic"
	},

@Jendker
Copy link

Jendker commented Nov 21, 2024

Change "to" like in the example linked by takezo. You need:

            "to": [
                {
                    "key_code": "f1",
                    "modifiers": ["fn"]
                }
            ],

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

3 participants