Hi<div><br></div><div>Bug is still reproduced for me in QScintilla-gpl-snapshot-2.6.1-e8ccaf398640</div><div><br></div><div><div>Andrei Kopats</div><div><a href="http://hlamer.github.com/mksv3/">http://hlamer.github.com/mksv3/</a> - Simple programmers text editor</div>
<br><div class="gmail_quote">2012/1/27 Phil Thompson <span dir="ltr"><<a href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Thu, 26 Jan 2012 20:41:13 +0300, Andrei Kopats <<a href="mailto:hlamer@tut.by">hlamer@tut.by</a>> wrote:<br>
> Hi<br>
><br>
> I have a problem with the latest QScintilla snapshot.<br>
><br>
> My editor clears all Scintilla internal key mappings and processes all<br>
key<br>
> pressings with QActions. But, on the latest version of QScintilla, my<br>
> QActions don't receive some key pressings.<br>
><br>
> To make a test for this bug, I modified example-Qt4 from the latest<br>
> QScintilla snapshot. See the code below. I expect that after this<br>
> modifications, standard key mappings does not work. So, we can't move<br>
> cursor or select a text. We can only type symbols. It is correct.<br>
> But, if we selected some text with mouse, we should be able to<br>
copy-paste<br>
> it with Ctrl+C and Ctrl+V, because there are QActions in the Edit menu.<br>
> But, for me, this actions does not work.<br>
><br>
> I can't say exactly, when this problem appeared. QScintilla version from<br>
> Ubuntu 11.10 works correctly, but version in Debian wheezy and<br>
> snapshot QScintilla-gpl-snapshot-2.6.1-131138b43c85 is affected.<br>
><br>
> Is it a bug, or, am I doing something incorrectly?<br>
><br>
> Thanks in advance,<br>
> Andrei Kopats<br>
> <a href="http://hlamer.github.com/mksv3/" target="_blank">http://hlamer.github.com/mksv3/</a> - Simple programmers text editor<br>
><br>
><br>
> ...<br>
> MainWindow::MainWindow()<br>
> {<br>
>     textEdit = new QsciScintilla;<br>
><br>
>     // Clear all commands<br>
>     textEdit->SendScintilla( QsciScintillaBase::SCI_CLEARALLCMDKEYS );<br>
>     // Ctrl+Key pressings insert some strange symbols. Clear all<br>
mappings.<br>
>     for (char key = 'A'; key <= 'Z'; key++)<br>
>         textEdit->SendScintilla(QsciScintillaBase::SCI_CLEARCMDKEY, key<br>
+<br>
> (QsciScintillaBase::SCMOD_CTRL << 16));<br>
>     // Now I expect, that Ctrl+V, Ctrl+C, Ctrl+X will be processed by<br>
the<br>
> actions, created at MainWindow::createActions()<br>
>     // but, this key pressings are ignored<br>
><br>
>     setCentralWidget(textEdit);<br>
> ...<br>
<br>
</div></div>It is a bug (fixed in tonight's snapshot) and you are doing something<br>
incorrectly.<br>
<br>
To clear the existing bindings do...<br>
<br>
    textEdit->standardCommands()->clearKeys()<br>
    textEdit->standardCommands()->clearAlternateKeys()<br>
<span class="HOEnZb"><font color="#888888"><br>
Phil<br>
</font></span></blockquote></div><br></div>