Forum > Windows
Ctrl-V doesn't work anymore
Wings2018:
All,
Before raising this topic I checked the forum, but couldn't find a solution.
I installed FPC v3.0.4 from scratch on a new laptop and set following menu: Option -> Environment -> Keyboard & mouse -> Microsoft convention, and saved fpc.ini (the file content then showed 'EditKeys=microsoft');
When I try to copy a selected text by using ctrl-c on the keyboard it works (and even shows up in de Clipboard), and when keeping the selected text highlighted also ctr-x on the keyboard works.
Why doesn't ctrl-v work on the keyboard anymore (ctrl-v via menu Edit -> Paste works fine.)? Together with ctrl-v I tried several key combinations using 'fn' or 'alt', but nothing works. Also after closing and restarting fpc no results.
On my previous laptop it all worked fine.
dseligo:
Maybe you have something else assigned to Ctrl+V.
Did you try Shift+Insert? Maybe is something in your OS that grabs Ctrl+V.
Select menu Tools, Options. Then go to Editor and Key Mappings.
In filter type: Ctrl+V
You should get two results:
- under 'Text selection commands' Paste (Ctrl + V and Shift + Ins)
- under 'Designer commands' Paste Components (Ctrl + V and Shift + Ins)
This is in Lazarus 3.6.
Why do you use such an old version of Lazarus?
Martin_fr:
--- Quote from: dseligo on April 27, 2025, 11:41:25 am ---Select menu Tools, Options. Then go to Editor and Key Mappings.
--- End quote ---
Check the forum board => this is about the fpc (command-line/shell/dos) IDE.
dseligo:
--- Quote from: Martin_fr on April 27, 2025, 11:47:53 am ---
--- Quote from: dseligo on April 27, 2025, 11:41:25 am ---Select menu Tools, Options. Then go to Editor and Key Mappings.
--- End quote ---
Check the forum board => this is about the fpc (command-line/shell/dos) IDE.
--- End quote ---
You are correct :-[
I can confirm OP's problem, something isn't working OK.
If I select text and press Ctrl+C and then select menu Edit, Paste it pastes.
If I press Ctrl+V it doesn't Paste.
But: if I select text and go to menu Edit, Copy to Windows and after that press Ctrl+V it pastes. It is exactly the same with Shift+Insert.
So it looks that Ctrl+V does 'Paste from Windows'.
Why are they two different copy/paste in FP IDE?
TRon:
--- Quote from: dseligo on April 28, 2025, 01:17:51 am ---Why are they two different copy/paste in FP IDE?
--- End quote ---
A terminal application does not have any knowledge on/of the clipboard from the hosted OS. It has to rely on the terminal in use (which is not uniform).
Internal copy-paste inside the IDE itself (in theory) only has to take care of itself.
Having two copy-paste options allows to workaround in case of issues (you just experienced that yourself :) )
It used to work as you might expect but seems something got broken.
Navigation
[0] Message Index
[#] Next page