Charly Dante
2014-01-06 12:26:43 UTC
Hi,
I'm currently working on an application that uses the scintilla control and I wounder how to tell scintilla not to consume all keys pressed by the user?
I would like to link a function declaration with its definition, so that when the user holds down the CTRL-key and clicks on a function, it jumps automatically to the declaration of that function.
However, I can't catch any Keyboard messages at all. I already tried SCN_KEY, but nothing happens, no matter which key is pressed.
I also tried to catch the key event directly in my application like that:
LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
switch (msg)
{
case WM_KEYDOWN:
std::cout << "The user pressed a key!\n";
break;
}
return DefWindowProc(hwnd, msg, wParam, lParam);
}
But again, nothing happens. It seems that the Scintilla Control is consuming all keystrokes - how can I solve this problem?
Best,
CD
I'm currently working on an application that uses the scintilla control and I wounder how to tell scintilla not to consume all keys pressed by the user?
I would like to link a function declaration with its definition, so that when the user holds down the CTRL-key and clicks on a function, it jumps automatically to the declaration of that function.
However, I can't catch any Keyboard messages at all. I already tried SCN_KEY, but nothing happens, no matter which key is pressed.
I also tried to catch the key event directly in my application like that:
LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
switch (msg)
{
case WM_KEYDOWN:
std::cout << "The user pressed a key!\n";
break;
}
return DefWindowProc(hwnd, msg, wParam, lParam);
}
But again, nothing happens. It seems that the Scintilla Control is consuming all keystrokes - how can I solve this problem?
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.
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.