Browse Source

+ unicode fix

git-svn-id: branches/unicodekvm@48641 -
nickysn 4 years ago
parent
commit
5843d66a38
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/fv/src/dialogs.inc

+ 2 - 2
packages/fv/src/dialogs.inc

@@ -3205,9 +3205,9 @@ BEGIN
      evMouseDown: FocusLink;                          { Focus link view }
      evMouseDown: FocusLink;                          { Focus link view }
      evKeyDown:
      evKeyDown:
        Begin
        Begin
-         if assigned(text) then
+         if text<>Sw_PString_Empty then
            begin
            begin
-             C := HotKey(Text^);                            { Check for hotkey }
+             C := HotKey(Text Sw_PString_DeRef);            { Check for hotkey }
              If (GetAltCode(C) = Event.KeyCode) OR          { Alt plus char }
              If (GetAltCode(C) = Event.KeyCode) OR          { Alt plus char }
                ((C <> #0) AND (Owner^.Phase = phPostProcess)  { Post process phase }
                ((C <> #0) AND (Owner^.Phase = phPostProcess)  { Post process phase }
                 AND (UpCase(Event.CharCode) = C)) Then         { Upper case match }
                 AND (UpCase(Event.CharCode) = C)) Then         { Upper case match }