BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 08-28-2008, 06:33 PM   #1 (permalink)
New Member
 
Join Date: Aug 2008
Model: sim
PIN: N/A
Carrier: sim
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default EditField not taking character input

Please Login to Remove!

This is about as basic as it gets...

EditField edit = new EditField("Notes: ", "");
add(edit);

Any ideas why I am having issues actually typing into this edit field on the sim. Other examples I have used work...I added this to my hello world app and the field will not take user input. Option controls, etc work fine.

wtf?

Thanks.

JDE 4.2.1.41
Offline  
Old 08-28-2008, 07:40 PM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

Do you have an override of keyChar() in your screen class? If so, you may be inadvertantly eating the characters.

Always call super.keyChar() for the keystrokes that you do not handle.
Offline  
Old 08-28-2008, 10:12 PM   #3 (permalink)
New Member
 
Join Date: Aug 2008
Model: sim
PIN: N/A
Carrier: sim
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Thank you!

Took out the:

Code:
    public boolean keyChar(char key, int status, int time) {
        //intercept the ESC key - exit the app on its receipt
        boolean retval = false;

        switch (key) {
        case Characters.ESCAPE:
            onClose();
            retval = true;
            break;
        }
        
        return retval;
    }
And EditFields are as easy to use as they should be.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

New* Cisco 7960G Gigabit Unified VoIP Phone CP-7960G 68-2563-02 REV.BO NEW OPEN
$74.95
New* Cisco 7960G Gigabit Unified VoIP Phone CP-7960G 68-2563-02 REV.BO  NEW OPEN picturePolycom VVX 310 VoIP SIP Gigabit Business Media Phone 1 Year Warranty
$49.0
Polycom VVX 310 VoIP SIP Gigabit Business Media Phone 1 Year Warranty pictureTalkSwitch 244 vs VoIP 7.11 PBX + 30 Days WARRANTY LQQK
$349.0
TalkSwitch 244 vs VoIP  7.11 PBX   +   30 Days WARRANTY  LQQK  pictureD-Link DPH-125MS Voicecenter IP VoiP Phone BPH125MSA A2
$29.99
D-Link DPH-125MS Voicecenter IP VoiP Phone BPH125MSA  A2 picturePanasonic KX-TDA50 Digital Hybrid IP-PBX VoIP Phone System KX-TDA3193 KX-TDA3172
$499.0
Panasonic KX-TDA50 Digital Hybrid IP-PBX VoIP Phone System KX-TDA3193 KX-TDA3172 picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.