[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-openjfx-dev
Subject:    Re: [External] : Re: Q: missing APIs needed for implementation of a rich text control
From:       Andy Goryachev <andy.goryachev () oracle ! com>
Date:       2023-01-27 22:11:50
Message-ID: DM5PR1001MB2172E2359790B168B4C99504E5CC9 () DM5PR1001MB2172 ! namprd10 ! prod ! outlook ! com
[Download RAW message or body]

Martin:

I am trying to collect the JBS tickets that might impact a rich text contro=
l.


I am not sure why Windows does not go through InputMethodEvents, but it loo=
ks like there is enough inconsistency in the behavior on Linux to warrant a=
 defect.  Looks like someone was working on a fix and then it got dropped.

-andy



From: Martin Fox <martin@martinfox.com>
Date: Friday, January 27, 2023 at 13:55
To: Andy Goryachev <andy.goryachev@oracle.com>
Cc: openjfx-dev <openjfx-dev@openjdk.org>
Subject: [External] : Re: Q: missing APIs needed for implementation of a ri=
ch text control
Andy,

Could you elaborate on why you want to see KeyEvents for dead keys on Linux=
? https://bugs.openjdk.org/browse/JDK-8172867

On Windows dead keys are delivered as KeyEvents. The dead keys generate KEY=
_PRESSED events and the final composed character is delivered in a KEY_TYPE=
D event. This reflects how the OS handles dead keys.

On Mac dead keys are handled using InputMethodEvents. The dead keys generat=
ed composed events and the final character is presented as committed text. =
This also reflects how the OS handles dead keys.

X11 follows the Mac model but JavaFX does not implement this completely (it=
 only sends the final commit event). I haven=92t delved into the code in de=
tail but I suspect fleshing out the InputMethodEvent path to match the Mac =
would be much easier than trying to force Linux to deliver the same event s=
tream as Windows.

Martin


[Attachment #3 (text/html)]

<html xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:"Times New Roman \(Body CS\)";
	panose-1:2 11 6 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	font-size:10.0pt;
	font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
span.EmailStyle18
	{mso-style-type:personal-reply;
	font-family:"Courier New";
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple" \
style="word-wrap:break-word;overflow-wrap: break-word;-webkit-nbsp-mode: \
space;line-break:after-white-space"> <div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Courier \
New&quot;">Martin:<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Courier \
New&quot;"><o:p>&nbsp;</o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Courier New&quot;">I am trying to collect \
the JBS tickets that might impact a rich text control.<o:p></o:p></span></p> <p \
class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Courier \
New&quot;"><o:p>&nbsp;</o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Courier \
New&quot;"><o:p>&nbsp;</o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Courier New&quot;">I am not sure why \
Windows does not go through InputMethodEvents, but it looks like there is enough \
inconsistency in the behavior on Linux to warrant a defect.&nbsp; Looks like someone  \
was working on a fix and then it got dropped.<o:p></o:p></span></p> <p \
class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Courier \
New&quot;"><o:p>&nbsp;</o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Courier \
New&quot;">-andy<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Courier \
New&quot;"><o:p>&nbsp;</o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Courier \
New&quot;"><o:p>&nbsp;</o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Courier \
New&quot;"><o:p>&nbsp;</o:p></span></p> <div style="border:none;border-top:solid \
#B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in"> <p class="MsoNormal" \
style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From: \
</span></b><span style="font-size:12.0pt;color:black">Martin Fox \
&lt;martin@martinfox.com&gt;<br> <b>Date: </b>Friday, January 27, 2023 at 13:55<br>
<b>To: </b>Andy Goryachev &lt;andy.goryachev@oracle.com&gt;<br>
<b>Cc: </b>openjfx-dev &lt;openjfx-dev@openjdk.org&gt;<br>
<b>Subject: </b>[External] : Re: Q: missing APIs needed for implementation of a rich \
text control<o:p></o:p></span></p> </div>
<p class="MsoNormal"><span style="font-size:11.0pt">Andy,<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">Could you elaborate on why you \
want to see KeyEvents for dead keys on Linux? <a \
href="https://bugs.openjdk.org/browse/JDK-8172867">https://bugs.openjdk.org/browse/JDK-8172867</a><o:p></o:p></span></p>
 </div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">On Windows dead keys are \
delivered as KeyEvents. The dead keys generate KEY_PRESSED events and the final \
composed character is delivered in a KEY_TYPED event. This reflects how the OS \
handles dead keys.<o:p></o:p></span></p> </div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">On Mac dead keys are handled \
using InputMethodEvents. The dead keys generated composed events and the final \
character is presented as committed text. This also reflects how the OS handles dead \
keys.<o:p></o:p></span></p> </div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">X11 follows the Mac model but \
JavaFX does not implement this completely (it only sends the final commit event). I \
haven’t delved into the code in detail but I suspect fleshing out the \
InputMethodEvent path  to match the Mac would be much easier than trying to force \
Linux to deliver the same event stream as Windows.<o:p></o:p></span></p> <div>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">Martin<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p>&nbsp;</o:p></span></p>
</div>
</div>
</body>
</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic