Recent

Author Topic: TEdit.OnKeyUp event not fired for unicode keys  (Read 542 times)

kovalsky

  • Newbie
  • Posts: 5
TEdit.OnKeyUp event not fired for unicode keys
« on: February 21, 2024, 10:34:31 am »
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  [Select][+][-]
  1. function TQtWidget.QtKeyToLCLKey(AKey: Integer; AText: WideString;
  2.   AEvent: QKeyEventH): Word;
  3. begin
  4.   // The big problem here with unicode keys
  5.   // Example: for Russian letter A qt returns AKey = $0410 and this is
  6.   // absolutely correct: 0400 - 04FF - is russian unicode space and
  7.   // 0410 is defined as "CYRILLIC CAPITAL LETTER A"
Is this a known mistake? Are there any workarounds?

 

TinyPortal © 2005-2018