Summary: | Dead keys delete selected text: sending IMStart with 0 chars | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Elmar Krieger <elmar> |
Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | pascal.letourneau |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | RedHat Enterprise Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Elmar Krieger
2005-03-24 15:17:51 UTC
Confirming in 3.5.8 and trunk. This would be easily fixed, but the Qt docs say to do exactly this when receiving an input method event (clear selected text), see QInputMethodEvent (under 'perform the following steps') Is there a particular reason why this behaviour is wrong in this case? Well, I don't think the Qt docs were thinking about persistent selections. Usually, when you have a persistent selection and you enter some text (inside or outside the selection), the selection - and most importantly, the selected text - is preserved. But if you enter a composed character (potentially far outside the persistent selection) the selected text is removed. I'd call that a bit "surprising". Ok, I'll change this for persistent selections only then? Sure, for normal selections the behavior is correct. |