Commit 0099bde6 authored by Sven Strickroth's avatar Sven Strickroth

Only do the autocompletion if only the ctrl key is pressed, not ALT GR which results in Ctrl+Alt

Based on TortoiseSVN rev. 26913.
Signed-off-by: Sven Strickroth's avatarSven Strickroth <email@cs-ware.de>
parent c8eb4afe
......@@ -888,7 +888,7 @@ BOOL CSciEdit::PreTranslateMessage(MSG* pMsg)
{
case VK_SPACE:
{
if (GetKeyState(VK_CONTROL) & 0x8000)
if ((GetKeyState(VK_CONTROL) & 0x8000) && ((GetKeyState(VK_MENU) & 0x8000) == 0))
{
DoAutoCompletion(1);
return TRUE;
......@@ -898,7 +898,7 @@ BOOL CSciEdit::PreTranslateMessage(MSG* pMsg)
case VK_TAB:
// The TAB cannot be handled in OnKeyDown because it is too late by then.
{
if (GetKeyState(VK_CONTROL)&0x8000)
if ((GetKeyState(VK_CONTROL) & 0x8000) && ((GetKeyState(VK_MENU) & 0x8000) == 0))
{
//Ctrl-Tab was pressed, this means we should provide the user with
//a list of possible spell checking alternatives to the word under
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment