Skip to content
Merged
23 changes: 23 additions & 0 deletions source/globalCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -2408,6 +2408,29 @@ def script_navigatorObject_previousInFlow(self,gesture):
script_navigatorObject_previousInFlow.__doc__=_("Moves to the previous object in a flattened view of the object navigation hierarchy")
script_navigatorObject_previousInFlow.category=SCRCAT_OBJECTNAVIGATION

@script(
# Translators: Describes a command.
description=_("Toggles the support of touch interaction"),
category=SCRCAT_TOUCH,
gesture="kb:NVDA+control+alt+t",
)
def script_toggleTouchSupport(self, gesture):
enabled = not bool(config.conf["touch"]["enabled"])
try:
touchHandler.setTouchSupport(enabled)
except NotImplementedError:
# Translators: Presented when attempting to toggle touch interaction support
ui.message(_("Touch interaction not supported"))
return
# Set configuration upon success
config.conf["touch"]["enabled"] = enabled
if enabled:
# Translators: Presented when support of touch interaction has been enabled
ui.message(_("Touch interaction enabled"))
else:
# Translators: Presented when support of touch interaction has been disabled
ui.message(_("Touch interaction disabled"))

def script_touch_changeMode(self,gesture):
mode=touchHandler.handler._curTouchMode
index=touchHandler.availableTouchModes.index(mode)
Expand Down
8 changes: 7 additions & 1 deletion user_docs/en/userGuide.t2t
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,10 @@ If your laptop cannot do this or does not allow you to turn Num Lock off, you ma
If you are running NVDA on a device with a touchscreen and running Windows 8 or higher, you can also control NVDA directly via touch commands.
While NVDA is running, unless touch interaction support is disabled, all touch input will go directly to NVDA.
Therefore, actions that can be performed normally without NVDA will not work.
You can change this by enabling or disabling [touch interaction support # TouchSupportEnable] from touch interaction category of the NVDA settings.
%kc:beginInclude
To toggle touch interaction support, press NVDA+control+alt+t.
%kc:endInclude
You can also enable or disable [touch interaction support #TouchSupportEnable] from the Touch Interaction category of the NVDA settings.

+++ Exploring the Screen +++[ExploringTheScreen]
The most basic action you can perform with the touch screen is to announce the control or text at any point on the screen.
Expand All @@ -216,6 +219,8 @@ You can also keep your finger on the screen and move it around to read other con
When NVDA commands are described later in this user guide, they may list a touch gesture which can be used to activate that command with the touchscreen.
Following are some instructions on how to perform the various touch gestures.



==== Taps ====
Tap the screen quickly with one or more fingers.

Expand Down Expand Up @@ -1524,6 +1529,7 @@ This category contains the following options:
This checkbox enables NVDA's touch interaction support.
If enabled, you can use your fingers to navigate and interact with items on screen using a touchscreen device.
If disabled, touchscreen support will be disabled as though NVDA is not running.
This setting can also be toggled using NVDA+control+alt+t.

==== Touch typing mode ====[TouchTypingMode]
This checkbox allows you to specify the method you wish to use when entering text using the touch keyboard.
Expand Down