The texts of TextArea of compensation when I press the Enter key

Hello friends,

I am new to Adobe Flex.

Objective: I have a custom component named IOField based on the TextArea component. Inside the IOField, how to write the code that clears the text box when the user press ENTER key.

I have the main application of this component is added as < comp: IOField / > xml namespace: comp

Is there something in flex as fl.events.ComponentEvent which is present in flash?

I'm doing things OBJECT oriented way taking into account the performance too.

Help, please.

Thank you.

If you have extended the TextArea component, then you can use a small piece of AS3 to get the Keypress and delete the contents of the textfield object. something like that

AS:

private void changeEvent(e:KeyboardEvent)

{

if(e.keycode == Keyboard.Enter)

{

myTextArea.text = "";

}

}

MXML:

Tags: Flex

Similar Questions

  • When I press the SHIFT key to get to register this happened @: M and when I press on enter key this happens #__nb so how can I change the setting I tried to format it but it's always the Sammy _ same__Regards

    When I press the SHIFT key to get to register this happened @: M and when I press on enter key this comes up #.
    NB so how can I change the setting, I tried formatting but it's always the same
    Cordially Sammy

    Try another keyboard, if that solves your problem is faulty and should be replaced.

    "sammy06forever" wrote in the new message: * e-mail address is removed from the privacy... *

    When I press the SHIFT key to get to register this happened @: M and when I press on enter key this comes up #.
    NB so how can I change the setting, I tried formatting but it's always the same
    Cordially Sammy

  • Turn off the text field (always submits page when you press enter)

    I have an area which allows you to enter search criteria. There are two fields and a button. The 1st field is a selection list that gives a list of columns in a database that can be searched on. The 2nd field is where the user enters the value to search for. The user can submit the search in 2 ways. They can press the button or press return when the cursor is in the 2nd item that is a text field (always submits page when you press enter). The results are then displayed in a region of report below.

    The problem I have, is that if the request is for > 10 seconds and the user gets impatient and hits the Enter key or the button search again the query is returned for a second time (or third or fourth according to the impatience of the user) causing the claim on the basis of data with a negative impact on the performance of the system.

    I know how to handle the search key. On a click event on I turn off the button so that the user cannot click on it again and resubmit the request.

    My question is - how can I turn off "always provides a page when you press enter" text item when the user presses enter? I tried an onclick event, but disabled the front element I could type in anything. Onblur event does not seem to do anything.

    Any ideas would be very appreciated.

    Andy

    Hello

    First of all, one thing to try: attributes of the Page, there is a section for the presentation in double - try setting this option on no.

    Otherwise, using the text field type, adds the following to the INPUT tag:

    onkeypress="return submitEnter(this,event)"
    

    which means, you can call your own function of javascript on the onkeypress event, the final line would be call submitEnter(). But you can set the value of a hidden page element:

    function doEnter(t, e)
    {
     if ($x('P1_SEARCH_RUNNING').value == 0)
     {
      $x('P1_SEARCH_RUNNING').value = 1;
      return submitEnter(t, e);
     }
     else
     {
      return false;
     }
    }
    

    Then, after changing your element to an element of normal text on the attributes of HTML form elements, add in:

    onkeypress="return doEnter(this,event)"
    

    Andy

  • First text field in the page submit when the Enter key is hit. Don't want to send

    Hello

    I searched and cannot find this answer I had before...

    The text field is not present it always when you press included, just a standard text element.

    because it is the first text field in the page... or maybe it was because it is the text field on the page that requires him to 'Submit' page when you press the Enter"" key.

    I don't want the Enter key to send the page.
    Was - to add a dummy hidden text field before this text field?

    Bill:

    Add another text element to your page and to the text element 'attributes of HTML Form elements' specify

    style = "" display: none ""

    CITY

  • disable the ENTER KEY on the text element

    All,

    I am trying to disable VALIDATE on the ENTER KEY for a piece of text on a page like below but still his presentation how can I achieve this.

    I want the page to totally disable the entry button so when I press the ENTER KEY, nothing happens.

    what I did:

    1. when the page loads,

    $("input").keypress (function evt) {}

    charCode = evt.charCode var | evt.keyCode;

    If (charCode == 13) {}

    Returns false;

    }

    });

    2.

    NO.

    APEX 4.2

    Thank you.

    Hello

    Your code is not valid.

    I don't know that it generates errors.

    Put on the page-> Execute JavaScript when loading the Page

    $("input,select").keypress(function(e){
     return e.keyCode!==13;
    });
    

    Kind regards

    Jari

  • Text field (always submits page when you press enter)

    Hello

    I have two elements (username and password) and two buttons (Submit & cancel) when the user enters the correct DB table entry values and strike button SUBMIT with the < /b > < b > mouse it is able to go to the next internal page does not, up to here everything works absolutely perfect.

    But now, instead of clicking the button "SUBMIT" with the mouse, I want the user to use the functionality of the ENTER key on the keyboard and so I apply the two elements (username and password) as < b > text field (always submits page when you press enter) < /b > and < b > password (submits when you press enter) < /b > respectively.

    Also created a conditional branch and an unconditional branch (with the highest sequence number) by the research of the below thread: -.

    Re: Text field Element submits page when you press ENTER

    but still did not find any success, when I run the page with the correct details in the elements and press button nothing works the same page returns back to me with these two elements as empty?

    any help?


    thxs


    Kind regards
    Kumar

    Hello

    OK - two things...

    First of all, your branch to page 9 was conditional on the SUBMIT button

    Second, you had the condition that "request = Expression 1" where it should be "EXISTS.."

    I removed the button state and changed the condition type. Try it now

    Andy

  • When I type in a url, the Enter key is not recognized, so the site does not load

    When I type a url or paste in one and press ENTER, the Enter key is not recognized and nothing happens. It does not load. If I use a bookmark and click on a saved url that will load automatically.
    Have uninstalled and reinstalled firefox and it has not solved the problem.

    The problem may be caused by the Ask.com toolbar (Tools > Modules > Extensions)

    The details of your system display this toolbar to the user as AskTbARS/3.11.3.15590 agent

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • When I enter a Web site in the url of the Enter key does not work. I have to click on the arrow at the end of the line. Is this a configuration problem?

    The Enter key does not work in the line of the URL. If I go says:
    www.Bing.com
    and then press the Enter key, nothing happens.
    I have to click the arrow at the end of the field in order to activate the link.
    If I am anywhere else on any page the Enter key works as it should.

    Please click the button of resolved next to the answer that solved your problem of Firefox support, when you are connected.

  • I am trying to reinstall windows xp from disk but it only gets up to this request then for service pack 1 disc when I press on enter I get the file 'asms' on windows xp pro Service Pack1 necessary

    I am trying to reinstall windows xp from disk but it only gets up to this request then for service pack 1 disc when I press on enter I get the file 'asms' on windows xp pro service pack 1 cd needed someone had this problem and managed to solve it thanks a lot

    Hello

    Thanks for joining us on the Microsoft Community.

    According to the description of the problem you are facing problems with reinstalling Windows XP Professional, and you are to be invited to insert the Service Pack 1 drive to complete the installation.

    To help you to propose measures to solve the problem, I would appreciate if you could answer the following questions:

    1. did you uninstall Windows XP Service Pack 1 prior to reinstalling Windows XP?

    2. what was the installed Service Pack earlier?

    You may need to uninstall Windows XP Service Pack 1 first and then perform the reinstallation of Windows XP and to check if the installation goes smoothly.

    Please see the following articles for more information about uninstalling Windows XP Service Pack 1:

    How to manually remove Windows XP Service Pack 1

    http://support.Microsoft.com/kb/329015

     

    How to remove folders from Windows XP Service Pack 1

    http://support.Microsoft.com/kb/329260?WA=wsignin1.0

    Hope this information helps. Please come back for any clarification on this or any issue of Windows. We will be happy to help you.

  • I made a music video in Flash and it won't play on the timeline, and I can't scroll through it either. He plays when I press Ctrl + Enter, but not in the timeline panel. It worked perfectly before, but now for some reason it doesn't. Help, please

    I made a music video in Flash and it won't play on the timeline, and I can't scroll through it either. He plays when I press Ctrl + Enter, but not in the timeline panel. It worked perfectly before, but now for some reason it doesn't. Help, please

    It is the nature of the movieclips. They play only when you make a film Test. If you want an animation that plays when you scrub the timeline, select the element and change it to be a chart instead. You can do this in the properties panel.

  • When I press Ctrl enter in library mode, see a video of selected images...  I get an error message that says that the video is

    When I press the Ctrl Key and the Enter key, in library mode, to see a slide show of images that are selected... I get a window error that says "Lightroom - video support is not enabled.

    I can see regular video located in my catalog and other videos on the internet... very well.

    How can I 'activate' or turn on video?

    I've recently set up a second monitor and I don't know if this has had an effect...   But, I can't view slideshows even with just my phone on and the second monitor goes blank...

    Its a confirmed bug.   See here.   I wouldn't guarantee a quick or any difficulty considering Adobes bug of history setting. (not good)

    Video Support is disabled. Lightroom forums

  • When you press the Enter key, go to the next field

    Hello

    Usually in the form when we press tab it goes to the next form field.
    I want to go to the next field by pressing the Enter key.

    And there are also some select list in the form field which are like AutoComplete. So, how we can implement the functionality for autocmoplete fields.


    Thank you
    Olivier

    Hello

    See if that helps
    Keyboard tabular - tab order

    BR, Jari

    Published by: jarola on November 7th, 2009 12:18

    You may be interested also in this
    http://roelhartman.blogspot.com/2008/12/moving-through-tabular-forms-using.html

  • How to do the "Key-enter" trigger (when you click on enter key) works as the key "F8"?

    Hello. I have another question to ask.

    Oracle Forms 6i.

    I have a form in which SMARTBAR & by DEFAULT is the menu and there is no push buttons.

    In the form, there is a "field" named as "ID no.". After entering "No ID" in the field and click on the button 'Run query' in the menu 'DEFAULT & SMARTBAR', all the details of this respective "No ID" gets displayed in other areas. Even if I press "F8" all fields is displayed with values.

    But I have a requirement, i.e. after the entry "No ID" and click on the 'Enter' key, I want all the values to display.

    So I created a "Key-enter" trigger with the following code:

    BEGIN

    EXECUTE_QUERY;

    END;

    But after entering "No ID" and click on the 'Enter' key, the values are not displayed.

    What can I do to make this happen?

    Thank you.

    It depends on the design of your form. If your article ID is part of the base table block, you can do it.

    On your entry ID, create a KEY-NEXT-ITEM trigger:

    If: system.mode = "ENTER-QUERY" then

    execute_query;

    on the other

    next_item;

    end if;

    Now

    -L' user clicks enter the query (via smart bar icon or F7).

    -User enters ID and click on the button to execute the query.

  • The Enter key does not work in the address bar; I have to manually select the icon ' go to ' since the upgrade to Version 10.

    I just upgraded to Firefox 10. When I manually enter a URL in the address bar, press 'Go To' does not focus, then the Enter key will not work. I have to manually select the arrow "go to" to navigate. Any suggestions?

    This could be the extension of AVG safe search. If you have installed, try disabling it. Instructions here: use the extensions to add functionality to Firefox

  • By pressing the ENTER key in the first tab-&gt; a button in a different tab is pressed?

    Hi guys,.

    I am facing a problem. I have a tab with 4 different tabs. When I'm in the first tab and try to change the value of a control by pressing the Enter key, it suddenly switches to the second tab and presses a button here.

    No idea how it goes? I want to avoid that from happening.

    Thank you

    Check your tab order and control is enabled is a shortcut bound to it.

Maybe you are looking for

  • Satellite L300 - Audio dropouts

    Hi all I'm chancing down the source of the audio dropouts that I experience on my new Satellite L300. When I bought it I opened for the downgrade to XP Pro. After optimization of XP and disabling and number of devices and services, I now operate virt

  • Mark an object in real time on a displayed video acquired of a USB camera

    Hello I'm a beginner LabView user company acquired a project in which I need to see the video from a USB camera in LabView on computer screen. In the video, there will be a piece of metal, which is always a fixed position at the bottom left of the vi

  • Recovery the DM4 pavilion as a condition of factory, using the disk value

    I'm trying to recover my DM4 factory condition but Manager HP recovery, on the recovery of the system, show that this option is disabled (partition discovery is removed). I created the setting for recovery (4 disks + repair disc) disc. I would like a

  • WD470AV: Memory card reader does not work

    My WD470AV has a card reader for SD-MS/PRO forward. MMC SM. XD cards. OS = Win 7 Home Premium + SP1 It seems not work when an SD card is inserted as nothing presents itself as a "disk of abduction" as if when I insert a USB external hard drive or fla

  • Smartphones from blackBerry Bold 9700 not recognized by Office Manager

    I'm with T-mobile with a Blackberry 9700 v5.0.0.330 (Platform 5.1.0.91) I have trouble to synchronize my device on my computer. I am running Vista 32 bit on a Dell Inspiron 1525. I downloaded Desktop Manager 5.0.1 B49 MultiLanguage - without Media Ma