Bug 82738

Summary: [EFL] keycode translation is wrong for function keys
Product: WebKit Reporter: Sudarsana Nagineni (babu) <naginenis>
Component: WebKit EFLAssignee: Sudarsana Nagineni (babu) <naginenis>
Severity: Normal CC: gyuyoung.kim, lucas.de.marchi, rakuco, tonikitoo, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Description Flags
Patch none

Description Sudarsana Nagineni (babu) 2012-03-30 09:25:39 PDT
The following code sets wrong keycode value for function keys.

// Set F_XX keys to the windowsKeyMap.
>>    for (unsigned int i = 1; i < 25; i++) {
>        String key = "F" + String::number(i);
>>       windowsKeyMap().set(key, VK_F1 + i);

Vk_F1 keycode is equivalent to F1, so it should be 'VK_F1 + i - 1' instead of 'VK_F1 + i'.
Comment 1 Sudarsana Nagineni (babu) 2012-03-30 09:46:42 PDT
Created attachment 134832 [details]

Fix keycode translation for function keys
Comment 2 Raphael Kubo da Costa (:rakuco) 2012-03-30 12:50:06 PDT
Comment on attachment 134832 [details]

Looks good, thanks.
Comment 3 WebKit Review Bot 2012-04-05 01:47:36 PDT
Comment on attachment 134832 [details]

Clearing flags on attachment: 134832

Committed r113300: <http://trac.webkit.org/changeset/113300>
Comment 4 WebKit Review Bot 2012-04-05 01:47:41 PDT
All reviewed patches have been landed.  Closing bug.