Or just dispatch the desired keyboard event when you see the undesired one.
HTH, -Alex On 8/9/17, 2:47 PM, "Harbs" <harbs.li...@gmail.com> wrote: >You can try monkey-patching EditManager like so: > > switch(event.charCode) > { > case 122: // small z > case 90: // fixed caps lock > problem > /* pre-Argo and on the > mac then ignoreNextTextEvent */ > if > (!Configuration.versionIsAtLeast(10,1) && >(Capabilities.os.search("Mac OS") > -1)) > > ignoreNextTextEvent = true; > if(event.shiftKey){ > redo(); > > event.preventDefault(); > > } else { > undo(); > > event.preventDefault(); > } > break; > case 121: // small y > case 89: // fixed caps lock > problem > ignoreNextTextEvent = > true; > redo(); > event.preventDefault(); > break; > >> On Aug 10, 2017, at 12:45 AM, Harbs <harbs.li...@gmail.com> wrote: >> >> And I assume that in other browsers it’s always 121 and 122. Right? >> >>> On Aug 10, 2017, at 12:20 AM, Felipe Melo <fel...@snews.tv> wrote: >>> >>> Thanks for your reply. I did what you suggested but everything seems >>>fine: >>> >>> caps lock on: Y=89, Z=90 >>> caps lock off: y=121, z=122 >>> >>> I have already confirmed that is not a problem in my code because I >>>was able >>> to reproduce the problem in the "Text Controls" example running at >>> >>>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fflex.apa >>>che.org%2Ftourdeflex%2F&data=02%7C01%7C%7Cb095298bf6d1465f2b3c08d4df7048 >>>24%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636379120716199782&sdata >>>=EbYU6idsNIoF43URvxwBx6%2BfHQf%2FKHH1wA52kztjeQI%3D&reserved=0 (Spark >>>Framework Components > Visual >>> Components > Text Controls > Text Controls). >>> >>> The simple code below also presents the same problem: >>> >>> <?xml version="1.0"?> >>> <s:Application >>>xmlns:fx="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F% >>>2Fns.adobe.com%2Fmxml%2F2009&data=02%7C01%7C%7Cb095298bf6d1465f2b3c08d4d >>>f704824%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636379120716199782& >>>sdata=10uRSw9WbisF2Uf1sauxU5IHxLRyf9Nv5P7sp%2BzdSkI%3D&reserved=0" >>> xmlns:s="library://ns.adobe.com/flex/spark"> >>> <s:TextArea/> >>> </s:Application> >>> >>> Thanks, >>> >>> >>> >>> >>> -- >>> View this message in context: >>>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-f >>>lex-users.2333346.n4.nabble.com%2FCtrl-Z-with-caps-lock-on-not-working-i >>>n-Chrome-tp15676p15678.html&data=02%7C01%7C%7Cb095298bf6d1465f2b3c08d4df >>>704824%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636379120716199782&s >>>data=jWcPFKS%2FBxy2YhMfF8zDuPNUXjSrUTqMJskTkk3vGak%3D&reserved=0 >>> Sent from the Apache Flex Users mailing list archive at Nabble.com. >> >