1

I have posted a StackOverflow question about the behaviour of the VirtualKeyboard on the Torch simulator. As a follow up question, where does an EditField get it's reference to the Virtual Keyboard on touch devices?

I am trying to display a Real Numeric keyboard (the proper style bit is set on the EditField), yet the keyboard that is displayed (on the Torch simulator when the slider is closed) is a "qwerty" keyboard.

Community
  • 1
  • 1
Mike D
  • 4,938
  • 6
  • 43
  • 99

3 Answers3

0

You can add NullField before the EditField. NullField is the invisible Field with FOCUSABLE property.

Vivek Kumar Srivastava
  • 2,158
  • 1
  • 16
  • 23
0

For the follow up question - through the Screen, for example:

    // hide the virtual keyboard by default
    final Screen screen = getScreen();
    if (screen != null) {
        final VirtualKeyboard virtualKeyboard = screen.getVirtualKeyboard();
        if (virtualKeyboard != null) {
            virtualKeyboard.setVisibility(VirtualKeyboard.HIDE);
        }
    }
Alexander Farber
  • 21,519
  • 75
  • 241
  • 416
0

Fixed. The answer can be found on my StackOverflow question "Blackberry Torch Simulator and EditField Problem". The trick as to subclass directly from Manager.

The issue was the GridFieldManager, which I had subclassed. I am still not sure how that caused the behaviour I described above. If anyone has any idea please enlighten me.

Community
  • 1
  • 1
Mike D
  • 4,938
  • 6
  • 43
  • 99