浏览代码

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

woollybah 6 年之前
父节点
当前提交
5954ba1559
共有 1 个文件被更改,包括 3 次插入2 次删除
  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