diff options
author | 2021-08-02 13:23:58 +0200 | |
---|---|---|
committer | 2021-08-02 11:31:01 +0000 | |
commit | 4137d819f915eb44912284c12c3300dc412df4c2 (patch) | |
tree | 4c7c2bfdbbb61d173c3255f1d6db434b856c55c9 /src/lib | |
parent | Fixed #1722 [skip ci] (diff) | |
download | ferdium-app-4137d819f915eb44912284c12c3300dc412df4c2.tar.gz ferdium-app-4137d819f915eb44912284c12c3300dc412df4c2.tar.zst ferdium-app-4137d819f915eb44912284c12c3300dc412df4c2.zip |
Prevent pasting twice (#1644)
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Menu.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/Menu.js b/src/lib/Menu.js index 756b256fb..fe12f7dc4 100644 --- a/src/lib/Menu.js +++ b/src/lib/Menu.js | |||
@@ -583,6 +583,7 @@ const _titleBarTemplateFactory = (intl, locked) => [ | |||
583 | { | 583 | { |
584 | label: intl.formatMessage(menuItems.paste), | 584 | label: intl.formatMessage(menuItems.paste), |
585 | accelerator: `${ctrlKey}+V`, | 585 | accelerator: `${ctrlKey}+V`, |
586 | role: 'paste', | ||
586 | click() { | 587 | click() { |
587 | getActiveWebview().paste(); | 588 | getActiveWebview().paste(); |
588 | }, | 589 | }, |
@@ -590,6 +591,7 @@ const _titleBarTemplateFactory = (intl, locked) => [ | |||
590 | { | 591 | { |
591 | label: intl.formatMessage(menuItems.pasteAndMatchStyle), | 592 | label: intl.formatMessage(menuItems.pasteAndMatchStyle), |
592 | accelerator: `${ctrlKey}+Shift+V`, | 593 | accelerator: `${ctrlKey}+Shift+V`, |
594 | role: 'pasteAndMatchStyle', | ||
593 | click() { | 595 | click() { |
594 | getActiveWebview().pasteAndMatchStyle(); | 596 | getActiveWebview().pasteAndMatchStyle(); |
595 | }, | 597 | }, |