forked from nvaccess/nvda
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove RTL and LTR marks from various places. Fix for nvaccess#8361
Remove from clock name and value, read-only edit boxes in the properties window Add an app module for dllhost, which is used to remove those characters from properties window on older Windows 10 builds.
- Loading branch information
Showing
3 changed files
with
46 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# -*- coding: UTF-8 -*- | ||
# A part of NonVisual Desktop Access (NVDA) | ||
# Copyright (C) 2018 NV Access Limited, Łukasz Golonka | ||
# This file may be used under the terms of the GNU General Public License, version 2 or later. | ||
# For more details see: https://www.gnu.org/licenses/gpl-2.0.html | ||
|
||
""" Under older builds of Windows 10 (from RTM release to Creators Update) dllhost is used to display a properties window. | ||
Read-Only edit boxes in it can contain dates that include unwanted left-to-right and right-to-left indicator characters. | ||
This simply imports a proper class from explorer app module, and maps it to a edit control. | ||
""" | ||
|
||
import appModuleHandler | ||
from explorer import ReadOnlyEditBox | ||
|
||
class AppModule(appModuleHandler.AppModule): | ||
|
||
def chooseNVDAObjectOverlayClasses(self, obj, clsList): | ||
windowClass = obj.windowClassName | ||
|
||
if windowClass == "Edit": | ||
clsList.insert(0, ReadOnlyEditBox) | ||
return | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters