hotKeys

General help with the Ecere Cross Platform GUI toolkit: Window, common controls, events, etc.
Help with the 2D Graphics library: Surface, Display, Bitmap, Font and others.
Post Reply
D.Bane
Posts: 78
Joined: Thu Jul 29, 2010 2:51 pm

hotKeys

Post by D.Bane »

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.
No army is to big, if the heart is beating strong.
There's no bad luck, it's just easier to blame someone else.
jerome
Site Admin
Posts: 608
Joined: Sat Jan 16, 2010 11:16 pm

Re: hotKeys

Post by jerome »

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.
D.Bane
Posts: 78
Joined: Thu Jul 29, 2010 2:51 pm

Re: hotKeys

Post by D.Bane »

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

All the best.
D.Bane
No army is to big, if the heart is beating strong.
There's no bad luck, it's just easier to blame someone else.
Post Reply