Forum > QT

TEdit.OnKeyUp event not fired for unicode keys


I found that the TEdit.OnKeyUp event for Cyrillic characters is not being fired. I use Lazarus 3.0 (rev lazarus_3_0) FPC 3.2.2 x86_64-linux-qt5. Later in the code, I saw such a comment in the QtKeyToLCLKey function:

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---function TQtWidget.QtKeyToLCLKey(AKey: Integer; AText: WideString;  AEvent: QKeyEventH): Word;begin  // The big problem here with unicode keys  // Example: for Russian letter A qt returns AKey = $0410 and this is  // absolutely correct: 0400 - 04FF - is russian unicode space and  // 0410 is defined as "CYRILLIC CAPITAL LETTER A"Is this a known mistake? Are there any workarounds?


[0] Message Index

Go to full version