Page 1 of 2

Ctrl+V :: Changing function for Ctrl+V does not work. . . Can anyone confirm?

Posted: Wed Aug 14, 2019 3:43 pm
by FredBob
My default desire is for Ctrl+v to paste and match style. So, I remap the paste keys, reversing the functions.

Results: COPIED From spreadsheet: Using five vertical cells, one column.

Key commands: BOTH paste with original style
spread sheet cell outline and font

MENU: BOTH work as as expected with new mappings displayed.

KEY COMMANDS:
Ctrl+v . . . paste and match style WRONG
spread sheet cell outline and font

Ctrl+shft+v . . . paste with ORIGINAL style CORRECT
spread sheet cell outline and font

MENU: The edit options display the changed key mappings

Edit: paste . . . (paste with ORIGINAL style) CORRECT
spread sheet cell outline and font

Edit: . . . paste and match style . . . CORRECT . . . No cell outlines, and default scriv font.
ABBOTT
ACEVEDO
ACOSTA
ADAMS
ADKINS


Have tried with two computers: beta 20 (64), Windows 10, latest build.

Re: Ctrl+V :: Changing function for Ctrl+V does not work. . . Can anyone confirm?

Posted: Thu Aug 15, 2019 1:28 am
by rwfranz
Confirmed this behavior. Remapping Ctrl+V to another command does not work.

Re: Ctrl+V :: Changing function for Ctrl+V does not work. . . Can anyone confirm?

Posted: Tue Aug 20, 2019 12:44 pm
by brinkbart
rwfranz wrote:Confirmed this behavior. Remapping Ctrl+V to another command does not work.

There are several commonly-used commands that can't be remapped / won't stick. If there's some fundamental reason for it, I think the program should not let me remap them.

Re: Ctrl+V :: Changing function for Ctrl+V does not work. . . Can anyone confirm?

Posted: Wed Aug 21, 2019 9:08 pm
by rwfranz
brinkbart wrote:
rwfranz wrote:Confirmed this behavior. Remapping Ctrl+V to another command does not work.

There are several commonly-used commands that can't be remapped / won't stick. If there's some fundamental reason for it, I think the program should not let me remap them.


That would be expected behavior, I agree. If Ctrl+V is not re-assignable, the program should not let me even try (e.g., warning message, "Ctrl+V is reserved").

Re: Ctrl+V :: Changing function for Ctrl+V does not work. . . Can anyone confirm?

Posted: Wed Aug 21, 2019 9:35 pm
by krastev
Ctrl+V must be re-assignable!
The first thing I do when install Scrivener is the swap Ctrl+V and Ctrl+Shift+V. Most of the times I want to Paste and Match the Style.
I hope they will fix that.

Re: Ctrl+V :: Changing function for Ctrl+V does not work. . . Can anyone confirm?

Posted: Wed Aug 28, 2019 7:22 pm
by krastev
Is there a reason why we can't reassign the Ctrl+V to Paste and Match the Style?

Re: Ctrl+V :: Changing function for Ctrl+V does not work. . . Can anyone confirm?

Posted: Thu Aug 29, 2019 1:07 am
by tiho_d
Because Qt catches and handles a lot of default shortcuts within the editor for us. Most likely there is a way to workaround this behavior but it is not straight forward and needs time to investigate and find a fix.

Re: Ctrl+V :: Changing function for Ctrl+V does not work. . . Can anyone confirm?

Posted: Wed Sep 18, 2019 6:37 pm
by krastev
It works perfectly in 1.9. Can't you copy the necessary code from there? :mrgreen: Please.

Regards,
M

Re: Ctrl+V :: Changing function for Ctrl+V does not work. . . Can anyone confirm?

Posted: Fri Sep 20, 2019 1:00 am
by rwfranz
krastev wrote:It works perfectly in 1.9. Can't you copy the necessary code from there?

Different version of QT; the code is likely not compatible.

Given the difficulty, you might to invest a few minutes in making AutoHotKey or something similar swap the functions for now (thinking of this myself, as I use paste and match style more often than I use simple paste).

Re: Ctrl+V :: Changing function for Ctrl+V does not work. . . Can anyone confirm?

Posted: Thu Nov 21, 2019 6:55 pm
by FredBob
Still not working for me. Anyone?

Re: Ctrl+V :: Changing function for Ctrl+V does not work. . . Can anyone confirm?

Posted: Fri Dec 06, 2019 4:17 pm
by FredBob
This is still not working correctly

I have reversed the keymaps for paste. Crtl-v is set to match syle.

Ctrl-V pastes. It does not match style.

Edit ctrl-v does match style.

Re: Ctrl+V :: Changing function for Ctrl+V does not work. . . Can anyone confirm?

Posted: Fri Dec 06, 2019 7:46 pm
by rwfranz
FYI.
Workaround using AutoHotKey here: https://www.literatureandlatte.com/forum/viewtopic.php?f=57&t=58742&p=299103

If you read the notes in that topic, you'll see that this particular issue is a fairly deep bug. Don't hold your breath, in other words; it may not be fixed for some time.

AHK is free.

Re: Ctrl+V :: Changing function for Ctrl+V does not work. . . Can anyone confirm?

Posted: Fri Dec 06, 2019 9:48 pm
by FredBob
rwfranz wrote:FYI.

... you'll see that this particular issue is a fairly deep bug. .


How can a key mapping be a deep issue? That implies that changing any key mapping changes will not work.

Makes no sense to me. Prolly a hold-over from the mac stuff.

Re: Ctrl+V :: Changing function for Ctrl+V does not work. . . Can anyone confirm?

Posted: Sat Dec 07, 2019 12:41 am
by Jestar
FredBob wrote:
rwfranz wrote:FYI.

... you'll see that this particular issue is a fairly deep bug. .


How can a key mapping be a deep issue? That implies that changing any key mapping changes will not work.

Makes no sense to me. Prolly a hold-over from the mac stuff.


I'm not certain this is a bug within Scrivener or just something that has to be worked around from QT and Windows. FWIW, Windows 7 has this: Ctrl + Shift + V Move a note to a specific folder within the Windows Journal (not sure I ever used Windows Journal). That key combination is not used anywhere that I could find in Windows 10 or 8.1. That said, ALL of the Windows key combinations that are built-in by default are REALLY built-in - to the registry. It may not be possible (or desirable) to remap this particular key combination throughout Windows itself, just to satisfy its usage in one specific program. This is why there are a host of keyboard remapper utilities like AutoHotKey that might be the better way to handle this specific need.
If you are curious, here are the key mappings for Windows: https://support.microsoft.com/en-us/hel ... -shortcuts

Re: Ctrl+V :: Changing function for Ctrl+V does not work. . . Can anyone confirm?

Posted: Sun Dec 08, 2019 6:31 pm
by rwfranz
FredBob wrote:
rwfranz wrote:FYI.

... you'll see that this particular issue is a fairly deep bug. .


How can a key mapping be a deep issue? That implies that changing any key mapping changes will not work.

Makes no sense to me. Prolly a hold-over from the mac stuff.


tiho said it was in the QT libraries they're using. Thus, a bit more complicated. Normally, QT Keymappings are relatively easy to fix, change, et cetera. But Ctrl+V? Not so much.

Thus, the AHK script to fix it for those who need them swapped.