> I would like to receive the dwell( call tip ) event when I hold on the ctrl
> key. currently, In Windows OS, when I hold the ctrl key, the dwel event will
> never sent. but it seems under linux, it works.
On Windows, keeping the Ctrl key pressed causes multiple key press
events to occur just like holding down an arrow key causes multiple
movements. Each time a key press event occurs, Scintilla resets the
dwell timer as normal key presses are interpreted as the user doing
something and not just hovering the mouse.
You could try to filter out these key press events, possibly on the
basis of which key is being pressed or on whether its an auto-repeat.
Neil
> I have just add a filter int this function, see below:
>
> int Editor::KeyDown(int key, bool shift, bool ctrl, bool alt, bool
> *consumed) {
>
> if (!ctrl)
> DwellEnd(false);
ctrl is a flag indicating that Ctrl is down, which is different
from receiving a key down message for the Ctrl key.
> When holding the ctrl key.it seems the tip windows appeared and disappeared
> quickly. Can you help to give me a direction??
Add some tracing in or use a breakpoint to find out why this is happening.
Neil
> I have just add a filter int this function, see below:
>
> int Editor::KeyDown(int key, bool shift, bool ctrl, bool alt, bool
> *consumed) {
>
> if (!ctrl)
> DwellEnd(false);ctrl is a flag indicating that Ctrl is down, which is different
from receiving a key down message for the Ctrl key.
> When holding the ctrl key.it seems the tip windows appeared and disappeared
> quickly. Can you help to give me a direction??Add some tracing in or use a breakpoint to find out why this is happening.
Neil