[scribus-dev] Please confirm or comment "2 strokes accented characters cant be typed in"

Gregory Pittman gpittman at iglou.com
Sat Jun 28 00:36:25 UTC 2014


On 06/27/2014 04:29 PM, JLuc wrote:
> Le 26/06/2014 06:02, William Bader a écrit :
>> I think that when you type directly into a text frame, 
>> CanvasMode_Edit in canvasmode_edit.cpp
>> handles keyPressEvent(QKeyEvent *e).
>> Does it also need to handle inputMethodEvent(QInputMethodEvent *e) to 
>> get composed characters?
>
>> The story editor seems to handle composed characters in 
>> SEditor::inputMethodEvent(QInputMethodEvent *event) in
>> ui/storyeditor.cpp.
>
>> 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).
>
> Thanks for exploring the issue.
> I hope it will lead to some insight and solution !
>
I think the answer may come from seeing what Story Editor does that Edit 
Contents mode doesn't.  I wonder if it could be some need to include a 
Qt file in the declarations?

Greg



More information about the scribus-dev mailing list