Browse Source

Only filter out control if alt is not also down at the same time. Fixes #31.

woollybah 6 years ago
parent
commit
5954ba1559
1 changed files with 3 additions and 2 deletions
  1. 3 2
      maxguitextareascintilla.mod/win32.bmx

+ 3 - 2
maxguitextareascintilla.mod/win32.bmx

@@ -82,11 +82,12 @@ Type TWindowsScintillaTextArea Extends TWindowsTextArea
 				PostGuiEvent EVENT_GADGETLOSTFOCUS
 
 			Case WM_CHAR
-				If (keymods()&MODIFIER_CONTROL) Then
+				Local mods:Int = keymods()
+				If (mods & MODIFIER_CONTROL And Not (mods & MODIFIER_OPTION)) Then
 					Return 1
 				End If
 				If eventfilter<>Null
-					event=CreateEvent(EVENT_KEYCHAR,Self,Int(wp),keymods())
+					event=CreateEvent(EVENT_KEYCHAR,Self,Int(wp),mods)
 					If Not eventfilter(event,context) Return True
 				EndIf