[QScintilla] Command modifier problems on Mac OS X
Phil Thompson
phil at riverbankcomputing.com
Wed May 6 21:24:34 BST 2009
On Wed, 6 May 2009 12:38:38 -0500, David Hess <dhess at fishsoftware.com>
wrote:
> On May 6, 2009, at 12:00 PM, Phil Thompson wrote:
>>
>> Exactly what problem are you having? Does Command-A select all the
>> text?
>>
>> The event handler effectively ignores events like the press of the
>> Command
>> key but passes on the subsequent press of the A key (with a flag set
>> saying
>> the Command modifier is in effect).
>>
>> Phil
>>
>
> Without my workaround, no Command keys work. Select All, Copy, Paste,
> Cut, etc. do nothing.
>
> The event with the A key and the Command modifier set is not being
> handled correctly in my environment. The code in
> QsciScintillaBase::keyPressEvent (line 394-396) expects
> QKeyEvent.text() to have an "A" in it and in my environment it is "".
> QKeyEvent.key() however is set properly and does indicate the A key.
>
> The result is the key stroke is completely ignored.
The attached patch should fix it - or tonight's snapshot.
Thanks,
Phil
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qscintilla.patch
Type: text/x-diff
Size: 472 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/qscintilla/attachments/20090506/f1ef5be6/qscintilla.bin
More information about the QScintilla
mailing list