Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions source/NVDAObjects/window/winword.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# -*- coding: UTF-8 -*-
# NVDAObjects/window/winword.py
# A part of NonVisual Desktop Access (NVDA)
# Copyright (C) 2006-2020 NV Access Limited, Manish Agrawal, Derek Riemer, Babbage B.V.
# Copyright (C) 2006-2020 NV Access Limited, Manish Agrawal, Derek Riemer, Babbage B.V., Accessolutions,
# Julien Cochuyt
# This file is covered by the GNU General Public License.
# See the file COPYING for more details.

Expand Down Expand Up @@ -613,8 +614,10 @@ def _get_locationText(self):
textList.append(_("{distance} from top edge of page").format(distance=distance))
return ", ".join(textList)

def copyToClipboard(self):
def copyToClipboard(self, notify=True):
self._rangeObj.copy()
if notify:
ui.reportTextCopiedToClipboard(self._rangeObj.text)
return True

def find(self,text,caseSensitive=False,reverse=False):
Expand Down