PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar

OnScreenKeyboardVisible

UserInputService

bool

This property describes whether an on-screen keyboard is currently visible on the user’s screen.

The code snippet below prints whether the keyboard is visible.

local userInputService = game:GetService("UserInputService")

local keyboardIsVisible = userInputService.OnScreenKeyboardIsVisible
if (keyboardIsVisible) then
	print("On-screen keyboard is visible!")
else
	print("On-screen keyboard is not visible!")
end

As UserInputService is client-side only, this property can only be used in a LocalScript.

On screen keyboard

See also

  • UserInputService/OnScreenKeyboardSize
  • UserInputService/OnScreenKeyboardPosition