Skip to content

Commit

Permalink
Change default paste key for the Paste action to Shift+insert
Browse files Browse the repository at this point in the history
This is to allow importing dragonfly using keyboard layouts that
cannot type 'v'. Shift+insert should work in place of c-v, but can
be overridden using Paste's 'paste' constructor argument.
  • Loading branch information
drmfinlay committed Dec 9, 2018
1 parent 5cf50d8 commit 6648207
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dragonfly/actions/action_paste.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ class Paste(DynStrActionBase):
This action inserts the given *contents* into the Windows system
clipboard, and then performs the *paste* action to paste it into
the foreground application. By default, the *paste* action is the
:kbd:`Control-v` keystroke. The default clipboard format to use
:kbd:`Shift-insert` keystroke. The default clipboard format to use
is the *Unicode* text format.
"""

_default_format = CF_UNICODETEXT

# Default paste action.
_default_paste = Key("c-v/20")
_default_paste = Key("s-insert/20")

def __init__(self, contents, format=None, paste=None, static=False):
if not format:
Expand Down

0 comments on commit 6648207

Please sign in to comment.