Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-04

Two stage shortcuts question

5 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Vojtěch Čihák

Hi,
?
how are invented two-stage shortcuts?
?
I made a macro (project related, i.e. saved in project session) and I assigned shortcut CTRL+M, CTRL+J. It worked for a while. ?
Now when I try it, CTRL+M ?does nothing (OK), and CTRL+J does not write any text but Template Completion window is opened (since it has assigned CTRL+J). ?
Is it my mistake or a bug?
?
Thanks,
?
V.
?

Reply by email

Martin Frb
to Vojtěch Čihák
Vojt?ch ?ih?k wrote 10 lines
Hi, how are invented two-stage shortcuts? I made a macro (project related, i.e. saved in project session) and I assigned shortcut CTRL+M, CTRL+J. It worked for a while. Now when I try it, CTRL+M does nothing (OK), and CTRL+J does not write any text but Template Completion window is opened (since it has assigned CTRL+J). Is it my mistake or a bug?

Check in the keyboard map (tools / options / editor / keymap), what is assigned to ctrl-m

Also there is an issue with the macr package. IF you start 2 IDE at the same time (the actual startup must be at the same time [1]), then they both access the same file, used to check that the pascalscript extensions works.
Since they block each other, one will fail and it will write to the config that macros do not work.

You can re enable them in tools options, but it looses all the assgined keys.

[1] if you start them with enough time in between, you can run 10 or more instances in parallel and all is fine

Reply by email

Vojtěch Čihák
to Martin Frb

Thanks,
?
I checked CTRL+M, it is assigned to many macros, CTRL+M,L or CTRL+M, CTRL+L (i.e. some of them has CTRL in the second stage, others not). All those macros works. ?
I tried to restart Lazarus, no effect.
?
I tried to change the macro from CTRL+M,CTRL+J to CTRL+M,J. After this change, both CTRL+M,J and CTRL+M,CTRL+J triggers macro, while CTRL+J opens Template Completion. When I changed macro back to CTRL+M,CTRL+J it stopped working again. ?
V.

Reply by email

Martin Frb
to Vojtěch Čihák

Can you report an issue on the bugtracker please?

Vojt?ch ?ih?k wrote 55 lines
Thanks, I checked CTRL+M, it is assigned to many macros, CTRL+M,L or CTRL+M, CTRL+L (i.e. some of them has CTRL in the second stage, others not). All those macros works. I tried to restart Lazarus, no effect. I tried to change the macro from CTRL+M,CTRL+J to CTRL+M,J. After this change, both CTRL+M,J and CTRL+M,CTRL+J triggers macro, while CTRL+J opens Template Completion. When I changed macro back to CTRL+M,CTRL+J it stopped working again. V. ______________________________________________________________ > Od: Martin Frb > Komu: Lazarus mailing list > Datum: 28.04.2015 18:01 > P?edm?t: Re: [Lazarus] Two stage shortcuts question > Check in the keyboard map (tools / options / editor / keymap), what is assigned to ctrl-m Also there is an issue with the macr package. IF you start 2 IDE at the same time (the actual startup must be at the same time [1]), then they both access the same file, used to check that the pascalscript extensions works. Since they block each other, one will fail and it will write to the config that macros do not work. You can re enable them in tools options, but it looses all the assgined keys. [1] if you start them with enough time in between, you can run 10 or more instances in parallel and all is fine -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150428/66b42b85/attachment.html>

Reply by email