Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
tommy20
Posts: 253
Registered: ‎05-18-2011
My Device: Curve 9300, BB10 Dev Alpha C, Z10
Accepted Solution

Virtual keyboard submit key is incorrectly grey (disabled) when inputMode of a TextField is TextFieldInputMode.Password

Hi,

 

I encounter an strange behaviour of the Virtual Keyboard that the Virtual Keyboard submit key incorrectly becomes grey color (disabled) when the inputMode of a TextField is TextFieldInputMode.Password, below is the qml:

 

import bb.cascades 1.0

Page {
    TextField {
        inputMode: TextFieldInputMode.Password
        input {
            submitKey: SubmitKey.Go
            onSubmitted: {
                //do something
            }
        }
    }
}

 If I change the inputMode of a TextField is set to something else (e.g., TextFieldInputMode.EmailAddress), it is ok (i.e., the Virtual Keyboard submit key is correctly white (enabled)).

 

Is it a platform bug? (Device Z10, 10.1.0.4181)

 

Thanks,

--tom
Please use plain text.
BlackBerry Development Advisor
sabdelsayed
Posts: 249
Registered: ‎08-17-2012
My Device: BlackBerry Z10 and Q10
My Carrier: Bell

Re: Virtual keyboard submit key is incorrectly grey (disabled) when inputMode of a TextField is TextFieldInputMode.Password

[ Edited ]

Hi, I have tested the below code on 10.1.0.4xxx and cannot reproduce what you are seeing. Please see the screenshot attached.

 

IMG_00000366.png

@SamarAbdelsayed

Did this answer your question? Please accept post as solution.
Please refrain from posting new questions in solved threads.
Found a bug? Report it using the Issue Tracker
Please use plain text.
Developer
BBSJdev
Posts: 6,098
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: Virtual keyboard submit key is incorrectly grey (disabled) when inputMode of a TextField is TextFieldInputMode.Password

[ Edited ]

[EDIT] Sorry different OS version, ignore.


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.
BlackBerry Development Advisor
sabdelsayed
Posts: 249
Registered: ‎08-17-2012
My Device: BlackBerry Z10 and Q10
My Carrier: Bell

Re: Virtual keyboard submit key is incorrectly grey (disabled) when inputMode of a TextField is TextFieldInputMode.Password

[ Edited ]

It is actually a password field, but with the wrong (previously existent in my code) hint text. I copy/pasted the code provided by tommy20 into a preexisting project to test.

 

Note the eye for password peaking :smileywink:

@SamarAbdelsayed

Did this answer your question? Please accept post as solution.
Please refrain from posting new questions in solved threads.
Found a bug? Report it using the Issue Tracker
Please use plain text.
Developer
BBSJdev
Posts: 6,098
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: Virtual keyboard submit key is incorrectly grey (disabled) when inputMode of a TextField is TextFieldInputMode.Password

Yeah too quick to respond. :smileyhappy:

 

For what it's worth I had no problems either on 10.1 or 10.2.

 


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.
Developer
tommy20
Posts: 253
Registered: ‎05-18-2011
My Device: Curve 9300, BB10 Dev Alpha C, Z10

Re: Virtual keyboard submit key is incorrectly grey (disabled) when inputMode of a TextField is TextFieldInputMode.Password

@


sabdelsayed wrote:

Hi, I have tested the below code on 10.1.0.4xxx and cannot reproduce what you are seeing. Please see the screenshot attached.


Bellow is the screenshot.

--tom
Please use plain text.