Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Touch interaction: allow users to disable touch support completely (#…
…10557) * ConfSpec: add touch enabled key. Re #9682. Foundation: allow users to disable touch handler overlay by adding 'touch enabled' key to NVDA settings. * Touch handler: copyright header * Touch handler: use platform version tuple to determine if touch support should be used. Re #9682 * Touch handler: enable touch support/overlay if told to do so by users. re #9682. Enable touch support if configured to do so via settings. Also, change log text on touchscreen detection to just announce how many touch points are available before proceeding to enable/disable touch support. * Settings/touch interaction: add touch support toggle. Re #9682. Allow users to enable/disable touch support via Touch Interaction settings panel. * Touch supporte3d: add debugLog flag so excessive log output will not be seen unless requested. Re #9682. * Touch handler: handle configuration profile switches via a dedicated touch mode setter function. Re #9682. Similar to audio ducking support: use a dedicated 'set touch support' function to enable/disable touch handler thread based on whether touch support should be anbeld or not. This function in turn will be called when configuration profile changes to support scenarios such as manually turning off touch support or using profiles for apps where NVDA's own touch support should be turned off. * Touch handler: set touch support mode and register/unregister profile switching support. Re #9682. Touch handler's initialize function will set appropriate touch support mode based on current config value. Also, both initialize and termiante methods support profile switching by calling register/unregister function, respectively. * Touch interaction settings panel: use touchHandler.setTouchSupport function to toggle touch handler thread. Re #9682. * Touch interaction panel: add accelerator. * User guide: add notes on touch interaction support checkbox in settings. Re #9682 * Touch handler: review comments (annotations, docstring). Re #9682. Reviewed by Leonard de Ruijter: add type annotations, along with docstring for touch supported function. * Touch interaction panel: convert to use GUI helper. re #9682. Comment from Leonard de Ruijter: convert touch interaction panel to use GUI helper code just like other panels. * User guide: clarify the behavior of touch support when touch is disabled. Re #9682 * Touch handler: update copyright years
- Loading branch information