Return-Path: X-Original-To: apmail-flex-issues-archive@minotaur.apache.org Delivered-To: apmail-flex-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2279517C76 for ; Wed, 8 Oct 2014 02:18:34 +0000 (UTC) Received: (qmail 75497 invoked by uid 500); 8 Oct 2014 02:18:34 -0000 Delivered-To: apmail-flex-issues-archive@flex.apache.org Received: (qmail 75463 invoked by uid 500); 8 Oct 2014 02:18:34 -0000 Mailing-List: contact issues-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list issues@flex.apache.org Received: (qmail 75453 invoked by uid 99); 8 Oct 2014 02:18:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Oct 2014 02:18:33 +0000 Date: Wed, 8 Oct 2014 02:18:33 +0000 (UTC) From: "Alessandro Palombaro (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLEX-24442) s:textarea doesn't support keyboard ctrl-z (undo) command in IE7 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLEX-24442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14162951#comment-14162951 ] Alessandro Palombaro commented on FLEX-24442: --------------------------------------------- Another workaround is to listen for the keyup event instead (which triggers in IE correctly) and then manually dispatch a keydown event on the TextAreas textDisplay skinPart (RichEditableText) textContainerManager (mx_internal property) container which is what the undo manager is listening for the events on. Example. First check if the user is running IE (I used ExternalInterface call and navigater.userAgent search, but there might be an easier way), otherwise a single undo operation will trigger twice If the user is running IE add the keyup listener to the textArea instance and then manually dispatch a keydown event on the target of the undo manager protected function _keyUpHandler(event:KeyboardEvent):void { if (event.ctrlKey && event.keyCode == Keyboard.Z) { var richText:RichEditableText = textArea.textDisplay as RichEditableText; var event:KeyboardEvent = new KeyboardEvent(KeyboardEvent.KEY_DOWN, event.bubbles, event.cancelable, event.charCode, event.keyCode, event.keyLocation, event.ctrlKey, event.altKey, event.shiftKey); // unfortunately only means of accessing the target container seems to be via mx_internal richText.mx_internal::textContainerManager.container.dispatchEvent(event); } } Anyway hope this helps > s:textarea doesn't support keyboard ctrl-z (undo) command in IE7 > ---------------------------------------------------------------- > > Key: FLEX-24442 > URL: https://issues.apache.org/jira/browse/FLEX-24442 > Project: Apache Flex > Issue Type: Bug > Components: Spark: TextArea > Affects Versions: Adobe Flex SDK 4.1 (Release) > Environment: Affected OS(s): Windows > Affected OS(s): Windows XP > Browser: Internet Explorer 7.x > Language Found: English > Reporter: Adobe JIRA > Labels: easytest > Attachments: SparkTextAreaUnDoReDoInputBug_src.zip > > > Steps to reproduce: > 1. Just embed a s:textarea and try to use the undo command (ctrl-z) after typing > I tried the undo command on several tutorial websites using the textarea component in IE7 and it doesn't work either. Only using Firefox does it work. > Note: I can make the textarea perform the undo operation in code by using the undoManager. > > Actual Results: > nothing occurs > > Expected Results: > the text should undo > > Workaround (if any): > it works in mozilla firefox -- This message was sent by Atlassian JIRA (v6.3.4#6332)