difference between ASCII Chr(10) and Chr(13)
https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Representing_Keys_and_Shortcuts
ENTER key. On Mac keyboard the numeric keypad's ENTER key has different scan code, but FireMonkey converts it to this vkReturn constant value.
carriage return Newline
https://www.css-techhelp.com/post/lineendings
Windows/DOS
Carriage Return (CR) + Line Feed (LF), escape sequence: "\r\n" #13#10
hex: 0x0D 0x0A, dec: 13 10
Linux/Unix, Mac from OS X a.k.a macOS
Line Feed (LF), escape sequence: "\n" #10
hex: 0x0A, dec: 10
Mac Prior to OS X a.k.a. Mac OS 9 a.k.a. Classic Mac OS
Carriage Return (CR), escape sequence: "\r" #13
hex: 0x0D, dec: 13
firemonkey windows enter return system.uitypes vkreturn
uses
{$IFDEF MSWINDOWS}
Winapi.Windows;
{$ELSE}
Macapi.AppKit;
{$ENDIF}
https://stackoverflow.com/questions/13492531/getkeystate-in-firemonkey/13512345
https://stackoverflow.com/questions/39339048/firemonkey-edit-combo-autocomplete-autosuggest-while-typing
https://stackoverflow.com/questions/6373888/converting-newline-formatting-from-mac-to-windows
Windows uses carriage return + line feed for newline:
sed -e 's/$/\r/' inputfile > outputfile # UNIX to DOS (adding CRs)
sed -e 's/\r$//' inputfile > outputfile # DOS to UNIX (removing CRs)
perl -pe 's/\r\n|\n|\r/\r\n/g' inputfile > outputfile # Convert to DOS
perl -pe 's/\r\n|\n|\r/\n/g' inputfile > outputfile # Convert to UNIX
perl -pe 's/\r\n|\n|\r/\r/g' inputfile > outputfile # Convert to old Mac
Cross-Platform Development Delphi FireMonkey