NVDA with Japanese branch
修订版 | abda74199e5ab4c6509b6a20bf3747669c032f04 (tree) |
---|---|
时间 | 2015-05-24 19:28:54 |
作者 | Takuya Nishimoto <nishimotz@gmai...> |
Commiter | Takuya Nishimoto |
ti35123 work around NetRadioRecorder4 from GING
@@ -0,0 +1,29 @@ | ||
1 | +# netradiorecorder4.py | |
2 | +# A part of NonVisual Desktop Access (NVDA) | |
3 | +# 2015-05-10 Takuya Nishimoto | |
4 | + | |
5 | +import appModuleHandler | |
6 | +import api | |
7 | +import speech | |
8 | +import controlTypes | |
9 | +from NVDAObjects.IAccessible import IAccessible | |
10 | + | |
11 | +class AppModule(appModuleHandler.AppModule): | |
12 | + | |
13 | + def chooseNVDAObjectOverlayClasses(self, obj, clsList): | |
14 | + if obj.windowClassName == "FMTMainForm": | |
15 | + clsList.insert(0, EnhancedForm) | |
16 | + | |
17 | +class EnhancedForm(IAccessible): | |
18 | + | |
19 | + def script_reportItem(self, gesture): | |
20 | + gesture.send() | |
21 | + focusObject=api.getFocusObject() | |
22 | + speech.speakObject(focusObject, reason=controlTypes.REASON_QUERY) | |
23 | + | |
24 | + __gestures = { | |
25 | + "kb:downArrow": "reportItem", | |
26 | + "kb:upArrow": "reportItem", | |
27 | + "kb:leftArrow": "reportItem", | |
28 | + "kb:rightArrow": "reportItem", | |
29 | + } |