Sign in Join

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

Mailing lists / lazarus / 2011-03

Source -> Toggle Comment

7 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Juha gmail

Hi

I changed the shortcut for Toggle Comment into Ctrl+T. I also added some more shortcuts.

Shortcut for ecToggleComment was defined as: Ctrl+VK_OEM_2. It was displayed in menu caption as garbage.

And:
 VK_OEM_2 = $BF;
 // Used for miscellaneous characters; it can vary by keyboard.
 // For the US standard keyboard, the '/?' key

I couldn't trigger the Toggle Comment feature whatever keys I pressed. (I don't have US keyboard).
The original Ctrl+VK_OEM_2 can still be used as an alternative shortcut, with keyboards that support it.

Juha

Reply by email

Vincent Snijders
to Juha gmail: Hi I changed the shortcut for Toggle Comment into Ctrl+T. I also added some more…

2011/3/30 Juha (gmail) :

Show quoted text 17 lines
Hi I changed the shortcut for Toggle Comment into Ctrl+T. I also added some more shortcuts. Shortcut for ecToggleComment was defined as: Ctrl+VK_OEM_2. It was displayed in menu caption as garbage. And: ?VK_OEM_2 = $BF; ?// Used for miscellaneous characters; it can vary by keyboard. ?// For the US standard keyboard, the '/?' key I couldn't trigger the Toggle Comment feature whatever keys I pressed. (I don't have US keyboard). The original Ctrl+VK_OEM_2 can still be used as an alternative shortcut, with keyboards that support it.

Is ctrl + / still the default alternative shortcut?

Vincent

Reply by email

Juha gmail
to Vincent Snijders

Vincent Snijders kirjoitti keskiviikko, 30. maaliskuuta 2011 16:16:31:

Is ctrl + / still the default alternative shortcut?

Yes.
The benefit having it as an alternative (number 2 choice) is that the first shortcut is shown in menu caption properly.
VK_OEM_2 was showing as garbage.

Juha

Reply by email

Vincent Snijders
to Juha gmail

2011/3/30 Juha (gmail) :

Show quoted text 7 lines
Vincent Snijders kirjoitti keskiviikko, 30. maaliskuuta 2011 16:16:31: > Is ctrl + / still the default alternative shortcut? Yes. The benefit having it as an alternative (number 2 choice) is that the first shortcut is shown in menu caption properly. VK_OEM_2 was showing as garbage.

OK. Good improvement, without drawbacks, as far as I can see.

Thanks,
Vincent

Reply by email

Juha gmail
to Martin

Martin kirjoitti keskiviikko, 30. maaliskuuta 2011 17:46:22:

> Sorry, I meant Ctrl+Shift+T. Isn't that used by "insert todo" ?

Damn right! The "shortcut space" is getting crowded. I am about to change it to Ctrl+Shift+W which is not used in the default mapping.

Juha

Reply by email