Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

Fix function keys #68

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

jacobboland
Copy link

This fixes part of issue #65. enable_standard_function_keys did not work with boolean value. It also requires a reboot.

@dgoodlad
Copy link
Contributor

Hmm:

~ » defaults read-type NSGlobalDomain com.apple.keyboard.fnState
Type is boolean
~ » defaults read NSGlobalDomain com.apple.keyboard.fnState
1

We also have logic to translate true and false to the integer values here: https://github.com/boxen/puppet-boxen/blob/master/manifests/osx_defaults.pp#L29-L32

Can you show me an example of how this didn't work before, by probing with defaults read before and after?

@jacobboland
Copy link
Author

Running boxen, I received this message.

Error: Could not find class osx::global::enable_standard_function_keys

After reading a bit, the examples I found were using an integer value instead of boolean. Upon changing it, boxen changed the fnState bit as expected. The function keys worked as expected following a reboot.

~: defaults read-type NSGlobalDomain com.apple.keyboard.fnState
Type is integer

I'm running OS X 10.9.5

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

Successfully merging this pull request may close these issues.

2 participants