Ecere SDK/eC Forums
http://ec-lang.org/community/
Print view

hotKeys
http://ec-lang.org/community/viewtopic.php?f=5&t=101
Page 1 of 1
Author:  D.Bane [ Fri Aug 27, 2010 1:37 am ]
Post subject:  hotKeys

Hi.
Wanted to ask if there will be more of the hotKeys? Like ctrl++ or ctrl+"-" and combination of them as well as shift+alt+ctrl+*.. or similar. And would they be like the combinations, to have all the keys, so we can use any ones we decide.. (not ctrl0 but ctrl AND 0)

I hope I was clear.

Thanks.
D.Bane.
Author:  jerome [ Fri Aug 27, 2010 8:18 am ]
Post subject:  Re: hotKeys

Hi D. Bane,

You can define any modifier + key combination using the Key class:

Key { plus, ctrl = true }

You can individually check if any of the 'ctrl' key is pressed with the values leftControl and rightControl for each of the keyboard's ctrl key.
You can check if the '0' key was pressed with 'k0'.
The other key modifiers are 'alt' and 'shift', such as:

Key { star, shift = true, alt = true, ctrl = true }.

You can cast a Key to a SmartKey to handle different physical key assigned to the same function
(e.g. keyPadEnter and enter).

You can check if the combination was pressed with Key { k0, ctrl = true } or the existing predefined key combination ctrl0.

Hope this clarifies things.
Author:  D.Bane [ Sat Aug 28, 2010 12:47 pm ]
Post subject:  Re: hotKeys

There should be a thanks button :)
By the way..Is there anything Ecere can't do easily? ;)

All the best.
D.Bane
All times are UTC-05:00 Page 1 of 1