Skip to content

Commit 2f3b2fe

Browse files
committed
ref edbee#132, enabling inputMethodEvent for linux, re-enabling diacritics support
1 parent 1230e8a commit 2f3b2fe

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
edbee.lib:
44

5+
- fix #132, Writing diacritics in Linux
56
- ref #128, Build in supprort for virtual characters. Alternate position/cursor calculations via TextLayout
67
- ref #127,
78
- Option to show Unicode BIDI characters (CVE-2021-425740). (as red icons for now)

edbee-lib/edbee/views/components/texteditorcomponent.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,6 @@ void TextEditorComponent::keyReleaseEvent(QKeyEvent *event)
346346

347347
void TextEditorComponent::inputMethodEvent( QInputMethodEvent* m )
348348
{
349-
#ifndef Q_OS_LINUX
350-
351349
/// TODO: https://doc.qt.io/qt-5/qinputmethodevent.html
352350
/// Analyize how to implement this. The preeditString should NOT alter the undo-buffer
353351

@@ -366,15 +364,12 @@ void TextEditorComponent::inputMethodEvent( QInputMethodEvent* m )
366364
*/
367365

368366
if( !m->preeditString().isEmpty() ) {
369-
// replaceSelection(m->preeditString());
370367
controller()->replaceSelection(m->preeditString(),false, true);
371368
} else {
372369
controller()->replaceSelection(m->commitString(),false);
373370
}
374371

375372
m->accept();
376-
377-
#endif
378373
}
379374

380375

0 commit comments

Comments
 (0)