Discussion:
Hotspots combined with keydown - scintilla consumes keystrokes?
Charly Dante
2014-01-06 16:24:03 UTC
Permalink
Hi,

I'm currently working on an application where I would like to combine hotspots with the CTRL key. I want that the user can jump to a function declaration by holding CTRL and clicking on the function (similar to QTCreator for example).

However, I need to catch the event when a user holds the CTRL-key to achieve this. I already try SCN_KEY, but that doesn't do anything.

I also tried catching the WM_KEYDOWN event in the message loop of my application, but it seems that scintilla consumes all keystrokes, as I don't get any message, no matter which key I hit. My WindowProc looks somehow like this:


LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
switch (msg)
{
case WN_KEYDOWN:
std::cout << "key down!\n";
break;
}
return DefWindowProc(hwnd, msg, wParam, lParam);
}

How can I stop the scintilla control from consuming all keys?

Best,
CD
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.
Loading...