<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><div>> To: scribus-dev@lists.scribus.info<br>> From: jluc@no-log.org<br>> Date: Tue, 24 Jun 2014 16:24:03 +0200<br>> Subject: Re: [scribus-dev] Please confirm or comment "2 strokes accented characters cant be typed in"<br>> <br>> Le 24/06/2014 15:07, Craig Bradney a écrit :<br>> > We dont necessarily have control over this issue though. We receive keystrokes through the OS/DE/Qt<br>> > and then our own code. A whole lot can change without us changing code (and we haven't), plus its<br>> > different for every layout out there. If you can find an example on one system where nothing has<br>> > changed but Scribus then we could look for a difference.<br>> <br>> You mean its not scribus fault and that's why the bug report is not "confirmed" ?<br>> <br>> It could be that scribus has not changed,<br>> but nevertheless, the resulting features of this not-change have degraded.<br>> <br>> Scribus being [ not alone in space but interacting in a complex and changing<br>> computing environnement ] might have to evolve sometime<br>> when its environnement evolves, so as to continue delivering the same functions.<br>> <br>> Whether scribus fault or not, i think scribus should be able to manage<br>> dual-keystroke keyboard entries of words like fenêtre or Noël.<br>> <br>> Marking this bug as "confirmed" would mean that it requires some action<br>> so as to keep software usual keyboard behaviour.<br>> <br>> BTW ale, GregP got the bug too :<br>> http://permalink.gmane.org/gmane.comp.graphics.scribus/44671<br>> <br>> JL<br><br></div><div>I think that when you type directly into a text frame, CanvasMode_Edit in canvasmode_edit.cpp handles keyPressEvent(QKeyEvent *e).</div><div><br></div><div>Does it also need to handle inputMethodEvent(QInputMethodEvent *e) to get composed characters?</div><div><br></div><div>The story editor seems to handle composed characters in SEditor::inputMethodEvent(QInputMethodEvent *event) in ui/storyeditor.cpp.</div><div><br></div><div>I tried making a CanvasMode_Edit::handleKeyEvents() and CanvasMode_Edit::inputMethodEvent(QInputMethodEvent *event).  handleKeyEvents() was called for each component of the composed character but inputMethodEvent() was not called at the end, so it is probably more complicated.  Something else might need to call setAttribute(Qt::WA_InputMethodEnabled).</div><div><br></div><div>William</div><div><br></div>                                          </div></body>
</html>