Announcing Cut, Copy, and Paste Keybinds on Execution - B3P15/CSC-403-nvda-project GitHub Wiki

Announcing Cut, Copy, and Paste Keybinds

Author: Cooper Wooten

Why this change was made:

  • According to this issue: the base functionality of the nvda software can announce the cut, copy, and paste options when the mouse hovers over them to read them, but they are not announced in any way when the keybinds (control+c/x/v) are completed. There was a discussion in the issue where the original user asked for it to be completed as an intrinsic feature for the software rather than a plugin. Another user responded and said that they would not want this to be on by default, so I decided to implement as a selectable checkbox in settings that by default reads false.

The form used to make this change:

  • The change, as mentioned above, was decided to be made in the source code rather than an addon in order to comply with the user dialog in the request. To do this, the functionality of the change was added into three separate files. There was a configuration variable added into the configSpecs.py file and that config variable was connected to a checkbox in the settingsDialog.py file. The config boolean was also connected in the globalCommands.py file where the gestures were written. The gestures will only run if the variable reads "True."

How to use this feature:

  • To use this feature, go to the keyboard settings (NVDA+n -> Preferences -> Settings -> Keyboard) and scroll to the bottom of the subpage of settings. Near the bottom, there will be a checkbox about announcing cut, copy, and paste actions. When this option is selected and saved, using the basic windows keybinds of control+c for copy, control+x for cut, and control+v for paste will execute the action as well as saying the corresponding word out loud for the user.