https://bugs.kde.org/show_bug.cgi?id=510221

--- Comment #3 from Tanish Kumar <[email protected]> ---
(In reply to Emir SARI from comment #2)
> Or you can just implement ktextaddons’ smart substitution behaviour, just
> like KMail does. Then we can decide whether it’s a good idea to have it
> enabled by default.
> 
> Even more, implementing this in kxmlgui as a standard feature would allow
> most applications have this behaviour for free.

Thanks for the suggestion!

I actually just finished a local prototype by intercepting keyPressEvent in
TranslationUnitTextEdit, and it works well for both smart quotes and em-dashes.

However, I agree that reusing ktextaddons (like KMail) is the cleaner long term
solution. I will investigate how difficult it would be to integrate ktextaddons
into Lokalize.

For now, I can clean up my local implementation as a fallback in case adding a
new dependency is too much for this task.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to