Skip to content

Commit b41e08c

Browse files
authored
Merge b03b862 into bf676b5
2 parents bf676b5 + b03b862 commit b41e08c

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

source/globalCommands.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2092,6 +2092,7 @@ def script_restart(self,gesture):
20922092
description=_("Shows the NVDA menu"),
20932093
gestures=("kb:NVDA+n", "ts:2finger_double_tap")
20942094
)
2095+
@gui.blockAction.when(gui.blockAction.Context.MODAL_DIALOG_OPEN)
20952096
def script_showGui(self,gesture):
20962097
gui.showGui()
20972098

@@ -2900,6 +2901,7 @@ def script_reportAppModuleInfo(self,gesture):
29002901
category=SCRCAT_CONFIG,
29012902
gesture="kb:NVDA+control+g"
29022903
)
2904+
@gui.blockAction.when(gui.blockAction.Context.MODAL_DIALOG_OPEN)
29032905
def script_activateGeneralSettingsDialog(self, gesture):
29042906
wx.CallAfter(gui.mainFrame.onGeneralSettingsCommand, None)
29052907

@@ -2909,6 +2911,7 @@ def script_activateGeneralSettingsDialog(self, gesture):
29092911
category=SCRCAT_CONFIG,
29102912
gesture="kb:NVDA+control+s"
29112913
)
2914+
@gui.blockAction.when(gui.blockAction.Context.MODAL_DIALOG_OPEN)
29122915
def script_activateSynthesizerDialog(self, gesture):
29132916
wx.CallAfter(gui.mainFrame.onSelectSynthesizerCommand, None)
29142917

@@ -2918,6 +2921,7 @@ def script_activateSynthesizerDialog(self, gesture):
29182921
category=SCRCAT_CONFIG,
29192922
gesture="kb:NVDA+control+v"
29202923
)
2924+
@gui.blockAction.when(gui.blockAction.Context.MODAL_DIALOG_OPEN)
29212925
def script_activateVoiceDialog(self, gesture):
29222926
wx.CallAfter(gui.mainFrame.onSpeechSettingsCommand, None)
29232927

@@ -2927,6 +2931,7 @@ def script_activateVoiceDialog(self, gesture):
29272931
category=SCRCAT_CONFIG,
29282932
gesture="kb:NVDA+control+a"
29292933
)
2934+
@gui.blockAction.when(gui.blockAction.Context.MODAL_DIALOG_OPEN)
29302935
def script_activateBrailleDisplayDialog(self, gesture):
29312936
wx.CallAfter(gui.mainFrame.onSelectBrailleDisplayCommand, None)
29322937

@@ -2935,6 +2940,7 @@ def script_activateBrailleDisplayDialog(self, gesture):
29352940
description=_("Shows NVDA's braille settings"),
29362941
category=SCRCAT_CONFIG
29372942
)
2943+
@gui.blockAction.when(gui.blockAction.Context.MODAL_DIALOG_OPEN)
29382944
def script_activateBrailleSettingsDialog(self, gesture):
29392945
wx.CallAfter(gui.mainFrame.onBrailleSettingsCommand, None)
29402946

@@ -2944,6 +2950,7 @@ def script_activateBrailleSettingsDialog(self, gesture):
29442950
category=SCRCAT_CONFIG,
29452951
gesture="kb:NVDA+control+k"
29462952
)
2953+
@gui.blockAction.when(gui.blockAction.Context.MODAL_DIALOG_OPEN)
29472954
def script_activateKeyboardSettingsDialog(self, gesture):
29482955
wx.CallAfter(gui.mainFrame.onKeyboardSettingsCommand, None)
29492956

@@ -2953,6 +2960,7 @@ def script_activateKeyboardSettingsDialog(self, gesture):
29532960
category=SCRCAT_CONFIG,
29542961
gesture="kb:NVDA+control+m"
29552962
)
2963+
@gui.blockAction.when(gui.blockAction.Context.MODAL_DIALOG_OPEN)
29562964
def script_activateMouseSettingsDialog(self, gesture):
29572965
wx.CallAfter(gui.mainFrame.onMouseSettingsCommand, None)
29582966

@@ -2961,6 +2969,7 @@ def script_activateMouseSettingsDialog(self, gesture):
29612969
description=_("Shows NVDA's review cursor settings"),
29622970
category=SCRCAT_CONFIG
29632971
)
2972+
@gui.blockAction.when(gui.blockAction.Context.MODAL_DIALOG_OPEN)
29642973
def script_activateReviewCursorDialog(self, gesture):
29652974
wx.CallAfter(gui.mainFrame.onReviewCursorCommand, None)
29662975

@@ -2969,6 +2978,7 @@ def script_activateReviewCursorDialog(self, gesture):
29692978
description=_("Shows NVDA's input composition settings"),
29702979
category=SCRCAT_CONFIG
29712980
)
2981+
@gui.blockAction.when(gui.blockAction.Context.MODAL_DIALOG_OPEN)
29722982
def script_activateInputCompositionDialog(self, gesture):
29732983
wx.CallAfter(gui.mainFrame.onInputCompositionCommand, None)
29742984

@@ -2978,6 +2988,7 @@ def script_activateInputCompositionDialog(self, gesture):
29782988
category=SCRCAT_CONFIG,
29792989
gesture="kb:NVDA+control+o"
29802990
)
2991+
@gui.blockAction.when(gui.blockAction.Context.MODAL_DIALOG_OPEN)
29812992
def script_activateObjectPresentationDialog(self, gesture):
29822993
wx.CallAfter(gui.mainFrame. onObjectPresentationCommand, None)
29832994

@@ -2987,6 +2998,7 @@ def script_activateObjectPresentationDialog(self, gesture):
29872998
category=SCRCAT_CONFIG,
29882999
gesture="kb:NVDA+control+b"
29893000
)
3001+
@gui.blockAction.when(gui.blockAction.Context.MODAL_DIALOG_OPEN)
29903002
def script_activateBrowseModeDialog(self, gesture):
29913003
wx.CallAfter(gui.mainFrame.onBrowseModeCommand, None)
29923004

@@ -2996,6 +3008,7 @@ def script_activateBrowseModeDialog(self, gesture):
29963008
category=SCRCAT_CONFIG,
29973009
gesture="kb:NVDA+control+d"
29983010
)
3011+
@gui.blockAction.when(gui.blockAction.Context.MODAL_DIALOG_OPEN)
29993012
def script_activateDocumentFormattingDialog(self, gesture):
30003013
wx.CallAfter(gui.mainFrame.onDocumentFormattingCommand, None)
30013014

@@ -3004,6 +3017,7 @@ def script_activateDocumentFormattingDialog(self, gesture):
30043017
description=_("Shows the NVDA default dictionary dialog"),
30053018
category=SCRCAT_CONFIG
30063019
)
3020+
@gui.blockAction.when(gui.blockAction.Context.MODAL_DIALOG_OPEN)
30073021
def script_activateDefaultDictionaryDialog(self, gesture):
30083022
wx.CallAfter(gui.mainFrame.onDefaultDictionaryCommand, None)
30093023

@@ -3012,6 +3026,7 @@ def script_activateDefaultDictionaryDialog(self, gesture):
30123026
description=_("Shows the NVDA voice-specific dictionary dialog"),
30133027
category=SCRCAT_CONFIG
30143028
)
3029+
@gui.blockAction.when(gui.blockAction.Context.MODAL_DIALOG_OPEN)
30153030
def script_activateVoiceDictionaryDialog(self, gesture):
30163031
wx.CallAfter(gui.mainFrame.onVoiceDictionaryCommand, None)
30173032

@@ -3020,6 +3035,7 @@ def script_activateVoiceDictionaryDialog(self, gesture):
30203035
description=_("Shows the NVDA temporary dictionary dialog"),
30213036
category=SCRCAT_CONFIG
30223037
)
3038+
@gui.blockAction.when(gui.blockAction.Context.MODAL_DIALOG_OPEN)
30233039
def script_activateTemporaryDictionaryDialog(self, gesture):
30243040
wx.CallAfter(gui.mainFrame.onTemporaryDictionaryCommand, None)
30253041

@@ -3028,6 +3044,7 @@ def script_activateTemporaryDictionaryDialog(self, gesture):
30283044
description=_("Shows the NVDA symbol pronunciation dialog"),
30293045
category=SCRCAT_CONFIG
30303046
)
3047+
@gui.blockAction.when(gui.blockAction.Context.MODAL_DIALOG_OPEN)
30313048
def script_activateSpeechSymbolsDialog(self, gesture):
30323049
wx.CallAfter(gui.mainFrame.onSpeechSymbolsCommand, None)
30333050

@@ -3036,6 +3053,7 @@ def script_activateSpeechSymbolsDialog(self, gesture):
30363053
description=_("Shows the NVDA input gestures dialog"),
30373054
category=SCRCAT_CONFIG
30383055
)
3056+
@gui.blockAction.when(gui.blockAction.Context.MODAL_DIALOG_OPEN)
30393057
def script_activateInputGesturesDialog(self, gesture):
30403058
wx.CallAfter(gui.mainFrame.onInputGesturesCommand, None)
30413059

0 commit comments

Comments
 (0)