summaryrefslogtreecommitdiff
path: root/src/corelib
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2013-04-17 10:31:14 +0100
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2013-04-17 10:31:14 +0100
commit4f22f1677698d4114b76c1ddb4216f48892c8d9c (patch)
treeed687c468ca2650ffc7d8a6595a41fc96cfd9e26 /src/corelib
parent45183e34632af471e95a798db578e44c5319c4ad (diff)
downloadfpGUI-4f22f1677698d4114b76c1ddb4216f48892c8d9c.tar.xz
Revert "Add common procedures in fpg_base for deadkeys"
This reverts commit ccfd4b2ae0a9dfae0d19ae7ba673118af70c75da.
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/fpg_base.pas64
1 files changed, 0 insertions, 64 deletions
diff --git a/src/corelib/fpg_base.pas b/src/corelib/fpg_base.pas
index 07d44191..f3e8f6db 100644
--- a/src/corelib/fpg_base.pas
+++ b/src/corelib/fpg_base.pas
@@ -747,8 +747,6 @@ type
{ Keyboard }
function KeycodeToText(AKey: Word; AShiftState: TShiftState): string;
function CheckClipboardKey(AKey: Word; AShiftstate: TShiftState): TClipboardKeyType;
-function UseDeadKey(AChar: TfpgChar; AKey: word): TfpgChar;
-function ReadDeadKey(AKey: word): integer;
{ Color }
function fpgColorToRGBTriple(const AColor: TfpgColor): TRGBTriple;
@@ -973,68 +971,6 @@ begin
end { if/else }
end;
-function UseDeadKey(AChar: TfpgChar; AKey: word): TfpgChar;
-begin
- case AKey of
- keyDeadCircumflex:
- case AChar of
- 'a':
- Result:= 'â';
- 'e':
- Result:= 'ê';
- 'i':
- Result:= 'î';
- 'o':
- Result:= 'ô';
- 'u':
- Result:= 'û';
- 'A':
- Result:= 'Â';
- 'E':
- Result:= 'Ê';
- 'I':
- Result:= 'Î';
- 'O':
- Result:= 'Ô';
- 'U':
- Result:= 'Û';
- end;
- keyDeadDiaeresis:
- case AChar of
- 'a':
- Result:= 'ä';
- 'e':
- Result:= 'ë';
- 'i':
- Result:= 'ï';
- 'o':
- Result:= 'ö';
- 'u':
- Result:= 'ü';
- 'A':
- Result:= 'Ä';
- 'E':
- Result:= 'Ë';
- 'I':
- Result:= 'Ï';
- 'O':
- Result:= 'Ö';
- 'U':
- Result:= 'Ü';
- end;
- end;
-end;
-
-function ReadDeadKey(AKey: word): integer;
-begin
- case AKey of
- keyDeadCircumflex, keyDeadDiaeresis:
- Result := AKey;
- else
- Result := -1;
- end;
-end;
-
function fpgColorToRGBTriple(const AColor: TfpgColor): TRGBTriple;
begin
with Result do