Return-Path: Delivered-To: apmail-pivot-user-archive@www.apache.org Received: (qmail 96453 invoked from network); 24 Jul 2010 23:46:29 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Jul 2010 23:46:29 -0000 Received: (qmail 48025 invoked by uid 500); 24 Jul 2010 23:46:29 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 47974 invoked by uid 500); 24 Jul 2010 23:46:28 -0000 Mailing-List: contact user-help@pivot.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@pivot.apache.org Delivered-To: mailing list user@pivot.apache.org Received: (qmail 47966 invoked by uid 99); 24 Jul 2010 23:46:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Jul 2010 23:46:28 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kamilt.mail@gmail.com designates 209.85.214.54 as permitted sender) Received: from [209.85.214.54] (HELO mail-bw0-f54.google.com) (209.85.214.54) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Jul 2010 23:46:22 +0000 Received: by bwz12 with SMTP id 12so2607362bwz.13 for ; Sat, 24 Jul 2010 16:46:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=gyDqnvv881rjKZujgLihmR3woFcDW9xRJNdDVy76W0U=; b=UXoHzPy5CpTAz3PKUi3fd/X1oAYBWTJTa95tyPY62BQWmaVZ3eNXOsKcJzgpYOkkrm CpOLdiiqZMfL0MtbAzTOPz8BOm5lehQIfwr3CUQzk+vhINM7FsMfyVJDrH8D4t8pJFsG ITMqTjYJf4zWFZOxv6RY66/+UEFYDTMXxYi/0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=uRhKZCGEQQ5DbqihNkaRut7gZq0s/CPzrCP5INU2nPZpz5001VD+dWWs6QG5/n9ZhB BYu8qC2onV/9WkYdZd5PO5tP438MHjJ8ka0AfcLlQF3BOYDv4F477kBcSB9kvqKkcy0P YeCem1/UIrK+q99SS55TLx+UQGMwfoB7Wpz94= MIME-Version: 1.0 Received: by 10.204.136.71 with SMTP id q7mr4048874bkt.111.1280015160462; Sat, 24 Jul 2010 16:46:00 -0700 (PDT) Received: by 10.204.144.129 with HTTP; Sat, 24 Jul 2010 16:46:00 -0700 (PDT) In-Reply-To: <38395747-83DF-4583-9148-DDC9721F0A5A@mac.com> References: <3F1F4031-2477-4188-B7DC-7D8C03AF3CB0@mac.com> <38395747-83DF-4583-9148-DDC9721F0A5A@mac.com> Date: Sun, 25 Jul 2010 01:46:00 +0200 Message-ID: Subject: Re: Internationalization issues From: "Kamil T." To: user@pivot.apache.org Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable Hi, Just by holding CTRL I've got breakpoint with keyCode 17, keyLocation LEFT, if I hold right alt, the breakpoint is hit two times, first with with keyCode 17, keyLocation LEFT, then with with keyCode 18, keyLocation RIGHT. Looks like if I also have 'a' pressed, then I have two different messages, ctrl+a followed by right alt + a. Tried this on ubuntu - behaves normally. I'm clueless. W dniu 24 lipca 2010 19:42 u=BFytkownik Greg Brown napisa= =B3: > Try setting a breakpoint in TerraTextInputSkin#keyPressed() at line 1230: > > ... > } else if (keyCode =3D=3D Keyboard.KeyCode.A > =A0 =A0&& Keyboard.isPressed(commandModifier)) { ... > > > On Jul 24, 2010, at 11:21 AM, Kamil T. wrote: > >> Looks like alt+a is generating selection, when i press it, i have >> selectionLength set to full text width, selectionStart set to 0, =A0in >> the TextInput.insert(String text) function =A0delete(false) is called >> which clears the values (it is the 366th line in the TextInput class). >> I don't know where put breakpoint to see where selection is generated, >> maybe it confuses alt-a with ctrl-a (select all)? >> >> regards >> Kamil >> >> >> W dniu 24 lipca 2010 16:36 u=BFytkownik Greg Brown nap= isa=B3: >>> I'm using J6u20 as well, so it is probably not related to the JRE versi= on. >>> >>> Any chance you could try to step through the code to see where it is fa= iling? >>> >>> On Jul 24, 2010, at 10:30 AM, Kamil T. wrote: >>> >>>> Hi, >>>> Thank you for fast answer. >>>> I'm using latest stable version from the website - 1.5. >>>> >>>> java: >>>> Java Plug-in 1.6.0_20 >>>> Using JRE version 1.6.0_20-b02 Java HotSpot(TM) Client VM >>>> >>>> >>>> Windows 7 64bit - ultimate >>>> >>>> Strange, I was able to reproduce this behavior also inside Kitchen >>>> Sink demo. TextArea behaves in the same way for me. >>>> Could it be because of java version? >>>> >>>> br >>>> Kamil >>>> >>>> >>>> >>>> W dniu 24 lipca 2010 16:13 u=BFytkownik Greg Brown n= apisa=B3: >>>>> What Pivot version are you using? In 1.5 and above, I am able to copy= the string "=B3=F3=BF=BC=E6" into a TextInput, select the text using the m= ouse, and use Command-C (Mac shortcut) to copy it without error. I can also= use the Alt-A combination without a problem: I entered and copied this tex= t from the Kitchen Sink demo (using the Polish Pro keyboard mappings): "Piv= ot=B1". >>>>> >>>>> I was also unable to reproduce the problem in Windows XP. Could there= possibly be some other problem? >>>>> >>>>> Greg >>>>> >>>>> On Jul 24, 2010, at 9:34 AM, Kamil T. wrote: >>>>> >>>>>> Hello, >>>>>> >>>>>> My application uses Polish special characters and it looks like Pivo= t >>>>>> has some problems with them. >>>>>> >>>>>> In TextInput component, if I write there some special chars, >>>>>> copy/paste functionality stops working: >>>>>> if I write =A0"=B3=F3=BF=BC=E6" inside TextInput, then select text u= sing mouse, if >>>>>> I press Ctrl+C I get: >>>>>> >>>>>> >>>>>> java.lang.IndexOutOfBoundsException >>>>>> =A0 =A0 =A0 at org.apache.pivot.wtk.text.TextNode.getRange(TextNode.= java:255) >>>>>> =A0 =A0 =A0 at org.apache.pivot.wtk.TextInput.getSelectedText(TextIn= put.java:603) >>>>>> =A0 =A0 =A0 at org.apache.pivot.wtk.TextInput.copy(TextInput.java:43= 8) >>>>>> =A0 =A0 =A0 at org.apache.pivot.wtk.skin.terra.TerraTextInputSkin.ke= yPressed(TerraTextInputSkin.java:1249) >>>>>> =A0 =A0 =A0 at org.apache.pivot.wtk.Component$ComponentKeyListenerLi= st.keyPressed(Component.java:514) >>>>>> =A0 =A0 =A0 at org.apache.pivot.wtk.Component.keyPressed(Component.j= ava:2656) >>>>>> =A0 =A0 =A0 at org.apache.pivot.wtk.ApplicationContext$DisplayHost.p= rocessKeyEvent(ApplicationContext.java:1217) >>>>>> =A0 =A0 =A0 at java.awt.Component.processEvent(Unknown Source) >>>>>> =A0 =A0 =A0 at org.apache.pivot.wtk.ApplicationContext$DisplayHost.p= rocessEvent(ApplicationContext.java:655) >>>>>> =A0 =A0 =A0 at java.awt.Component.dispatchEventImpl(Unknown Source) >>>>>> =A0 =A0 =A0 at java.awt.Component.dispatchEvent(Unknown Source) >>>>>> =A0 =A0 =A0 at java.awt.KeyboardFocusManager.redispatchEvent(Unknown= Source) >>>>>> =A0 =A0 =A0 at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent= (Unknown Source) >>>>>> =A0 =A0 =A0 at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEv= ent(Unknown Source) >>>>>> =A0 =A0 =A0 at java.awt.DefaultKeyboardFocusManager.typeAheadAsserti= ons(Unknown Source) >>>>>> =A0 =A0 =A0 at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Un= known Source) >>>>>> =A0 =A0 =A0 at java.awt.Component.dispatchEventImpl(Unknown Source) >>>>>> =A0 =A0 =A0 at java.awt.Component.dispatchEvent(Unknown Source) >>>>>> =A0 =A0 =A0 at java.awt.EventQueue.dispatchEvent(Unknown Source) >>>>>> =A0 =A0 =A0 at java.awt.EventDispatchThread.pumpOneEventForFilters(U= nknown Source) >>>>>> =A0 =A0 =A0 at java.awt.EventDispatchThread.pumpEventsForFilter(Unkn= own Source) >>>>>> =A0 =A0 =A0 at java.awt.EventDispatchThread.pumpEventsForHierarchy(U= nknown Source) >>>>>> =A0 =A0 =A0 at java.awt.EventDispatchThread.pumpEvents(Unknown Sourc= e) >>>>>> =A0 =A0 =A0 at java.awt.EventDispatchThread.pumpEvents(Unknown Sourc= e) >>>>>> =A0 =A0 =A0 at java.awt.EventDispatchThread.run(Unknown Source) >>>>>> >>>>>> >>>>>> >>>>>> Other issue I have is with polish special character "=B1" - it's =A0= made >>>>>> using right alt+a on the polish programmer keyboard setting. The >>>>>> result is that the char is not appended to the text but it replaces >>>>>> the whole TextInput text content, =A0 "some text" + (alt+a) -> "=B1" >>>>>> >>>>>> >>>>>> It's critical for me to get it fixed... >>>>>> >>>>>> best regards >>>>>> Kamil Toszek >>>>> >>>>> >>> >>> > >