macOS: Fix middle-click to paste from clipboard not working

Fixes #3730
This commit is contained in:
Kovid Goyal 2021-06-15 13:45:50 +05:30
parent 63a36a1054
commit 51f8b22dfa
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
3 changed files with 5 additions and 2 deletions

View File

@ -9,6 +9,9 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
- Add support for the XTVERSION escape code
- macOS: Fix middle-click to paste from clipboard not working (:iss:`3730`)
0.21.1 [2021-06-14]
----------------------

View File

@ -492,7 +492,7 @@ mma('Discard press event for link click',
mma('Paste from the primary selection',
'paste_selection middle release ungrabbed paste_selection',
'paste_selection middle release ungrabbed paste_from_selection',
)
mma('Start selecting text',

View File

@ -864,7 +864,7 @@ defaults.mouse_map = [
# click_url_discard
MouseMapping(0, 5, 1, True, KeyAction('mouse_discard_event')),
# paste_selection
MouseMapping(2, 0, -1, False, KeyAction('paste_selection')),
MouseMapping(2, 0, -1, False, KeyAction('paste_from_selection')),
# start_simple_selection
MouseMapping(0, 0, 1, False, KeyAction('mouse_selection', (0,))),
# start_rectangle_selection