Skip to content

Matthew

My feedback

1 result found

  1. 399 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    Matthew supported this idea  · 
    An error occurred while saving the comment
    Matthew commented  · 

    We created a work around for this in our college art department because it was unusable when using the spacebar for the hand tool. This script was made for an MDM like Jamf to run as a login policy for each individual user.

    Download the script and open terminal
    type "sh [drag and drop the script for path]"
    press return
    enter account password
    log out and log in.

    Hand tool should work fine now.

    Script: save as .sh

    #!/bin/sh

    #CHANGE KEYBOARD SETTINGS FOR CURRENT USER 09042019

    currentuser=$(scutil <<< "show State:/Users/ConsoleUser" | awk '/Name :/ && ! /loginwindow/ { print $3 }')
    echo $currentuser

    # Disable press-and-hold for keys in favor of key repeat
    defaults delete NSGlobalDomain ApplePressAndHoldEnabled
    sudo su - "$currentuser" -c "defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool FALSE"

    # Set keyboard repeat rate
    defaults delete NSGlobalDomain KeyRepeat
    sudo su - "$currentuser" -c "defaults write NSGlobalDomain KeyRepeat -int 60"

    # Set a shorter Delay until key repeat
    defaults delete -g InitialKeyRepeat
    sudo su - "$currentuser" -c "defaults write -g InitialKeyRepeat -float 68"

    # POSIX loop kill cfprefsd daemon and flush cache.
    x=10; while [ $x -gt 0 ]; do sudo killall cfprefsd; x=$(($x-1)); done

    sudo killAll Finder
    exit 0

    All the script is doing is turning off ApplePressAndHold, changing Key Repeat to the 4th notch from the left and Delay Until Repeat to the 3rd notch from the left and then killing cfprefsd daemon and flushing the cache. You can get there through [System Preferences] [Keyboard] to change these setting through finder.

Feedback and Knowledge Base