Tuesday, April 24th 2018, 12:38pm UTC+2

You are not logged in.

  • Login
  • Register

kenmux

Beginner

Date of registration: Jan 18th 2016

Posts: 50

1

Monday, March 19th 2018, 7:27am

Keyboard work with EDIT with physical keypad only

Hello,

Now days I tried to implement widget KEYBOARD based on this thread:
http://forum.segger.com/index.php?page=Thread&postID=11893&highlight=keyboard#post11893
But, there're some problems with handling the focus.

In my scenario, the details:
1) emWin should get input from physical keypad, and output to focused widget (I've done this)
2) KEYBOARD should get input (UP, DOWN, LEFT, RIGHT, Y) from emWin
3) KEYBOARD should output corresponding key value to EDIT (not itself)

To achieve this:
1) KEYBOARD should have focus to get input
2) But the EDIT should have focus too to get input from KEYBOARD

So, what should I do? Any ideas?

Regards,
Kenmux

SEGGER - Schoenen

Super Moderator

Date of registration: Aug 13th 2015

Posts: 562

2

Tuesday, March 20th 2018, 3:38pm

Hi,

it is not necessary for the keaboard buttons to have the focus. In the callback function of the keyboard dialog you can react on the release messages of the buttons and call EDIT_AddKey().

Regards
Sven

kenmux

Beginner

Date of registration: Jan 18th 2016

Posts: 50

3

Thursday, March 29th 2018, 5:34am

Hi Sven,

I do not understand.
There's no pointer input device.
Touch screen is not installed.
How does the user select the keys and let EDIT get the input?

SEGGER - Schoenen

Super Moderator

Date of registration: Aug 13th 2015

Posts: 562

4

Thursday, March 29th 2018, 3:15pm

Hi,

Quoted

1) emWin should get input from physical keypad, and output to focused widget (I've done this)
I'm sorry, I must have missed this.

Do I get you right that you have two keyboards, a virtual and a physical one?

Regards
Sven

kenmux

Beginner

Date of registration: Jan 18th 2016

Posts: 50

5

Sunday, April 8th 2018, 9:56am

Yes, that's it.

The physical keypad has fewer keys for user to interact with UI.
And the virtual keyboard can have several kinds: alpha, digits, ...