iPhone: Disable the “double-tap spacebar for .” shortcut?

前端 未结 8 1750
陌清茗
陌清茗 2020-11-28 15:29

By default, if you tap the spacebar twice on the iPhone or iPad, instead of getting \"  \" (two spaces), you get \". \" (a period followed by a space). Is the

8条回答
  •  失恋的感觉
    2020-11-28 15:59

    I don't think there's a way to turn off exactly this, but check out UITextInputTraits. This lets you declare properties of your field, for example you can say if it's for entering a URL. That influences the behavior of the keyboard. If the reason you don't want double space to yield a period and space is that the text should be literally what the user entered for some reason, perhaps you want to turn off autocorrection. It's possible turning off autocorrection turns off double space for period, I don't know.

提交回复
热议问题