Gieta Laksmana
  • Blog
  • Profile
  • Projects
    • VR World Arcade
    • Punch For Fun
    • Spectrum
    • Dimension Battle
  • Resume

NSSecureTextField Shenanigans

7/14/2018

1 Comment

 
Interesting finding:

From the get go, you're not able to input accented characters with keyboard shortcut (alt+e e, alt+u o, etc) on a NSSecureTextField.
But I find this interesting "feature" (maybe a bug or loophole in Apple's implementation of secure text field?) which allows you to do just that.

Here's what to do:

Make sure key repeat is on at System Preference > Keyboard > Keyboard
Picture
I created a simple app with a basic NSSecureTextField and a label to display the content of the secure text field.

​Go to the NSSecureTextField
​Hold e (or any letter that has accented character), until the key repeats
Picture
After this point, key combinations (alt+e e, alt+y, alt+u o, etc) will work as expected ​
Picture
1 Comment
Heather W link
8/11/2021 04:19:37 pm

Thanks for writingg

Reply



Leave a Reply.

    Archives

    September 2018
    August 2018
    July 2018
    September 2017
    July 2017
    November 2016
    October 2016
    September 2016
    June 2016
    May 2016
    March 2016

    Categories

    All
    Shenanigans
    Software Engineering
    Swift
    Vr
    Xcode

    RSS Feed

Powered by Create your own unique website with customizable templates.