Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restart NVDA with a single gesture #6396

Merged
merged 1 commit into from May 30, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 7 additions & 1 deletion source/globalCommands.py
Expand Up @@ -3,7 +3,7 @@
#A part of NonVisual Desktop Access (NVDA)
#This file is covered by the GNU General Public License.
#See the file COPYING for more details.
#Copyright (C) 2006-2016 NV Access Limited, Peter Vágner, Aleksey Sadovoy, Rui Batista, Joseph Lee, Leonard de Ruijter, Derek Riemer
#Copyright (C) 2006-2016 NV Access Limited, Peter Vágner, Aleksey Sadovoy, Rui Batista, Joseph Lee, Leonard de Ruijter, Derek Riemer, Babbage B.V.

import time
import itertools
Expand Down Expand Up @@ -39,6 +39,7 @@
import virtualBuffers
import characterProcessing
from baseObject import ScriptableObject
import core

#: Script category for text review commands.
# Translators: The name of a category of NVDA commands.
Expand Down Expand Up @@ -1233,6 +1234,11 @@ def script_quit(self,gesture):
# Translators: Input help mode message for quit NVDA command.
script_quit.__doc__=_("Quits NVDA!")

def script_restart(self,gesture):
core.restart()
# Translators: Input help mode message for restart NVDA command.
script_restart.__doc__=_("Restarts NVDA!")

def script_showGui(self,gesture):
gui.showGui()
# Translators: Input help mode message for show NVDA menu command.
Expand Down