Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

event.keyname and "f10" function key.
Started by sosidee Mar 06 2014 12:50 AM

6 replies to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

sosidee

[GLOBAL: userInfoPane.html]
sosidee
  • Observer

  • 6 posts
  • Corona SDK

event.keyname do not detected in the function key F10!

any suggestions?



[TOPIC: post.html]
#2

primoz.cerar

[GLOBAL: userInfoPane.html]
primoz.cerar
  • Contributor

  • 455 posts
  • Corona SDK

Which mobile device has an F10 key?



[TOPIC: post.html]
#3

sosidee

[GLOBAL: userInfoPane.html]
sosidee
  • Observer

  • 6 posts
  • Corona SDK

Which mobile device has an F10 key?

any smartphone or tablet to which you have attached a keyboard :-)



[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,660 posts
  • Enterprise

Are you sure that key isn't being intercepted by the OS?



[TOPIC: post.html]
#5

sosidee

[GLOBAL: userInfoPane.html]
sosidee
  • Observer

  • 6 posts
  • Corona SDK

Are you sure that key isn't being intercepted by the OS?

We tried different OS (Win 7, Win 8, Win XP) and several Android devices (GT-I9100, GT-S5280, MK809III) always with the same result. All function keys are detected except F10



[TOPIC: post.html]
#6

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,660 posts
  • Enterprise

What about F11 and F12?

 

Can you file a bug report?  Make sure to include the build.settings and config.lua you are using.  Please post the bug report number back here when you get the confirmation email.

 

Rob



[TOPIC: post.html]
#7

Joshua Quick

[GLOBAL: userInfoPane.html]
Joshua Quick
  • Moderator

  • 3,397 posts
  • Corona Staff

Corona provides *all* keys that the operating system provides us at the native code level.  All of them.  If you are not receiving the f10 key, then that means the operating system is stealing it and not providing it to the Android activity in native code.

 

Also note that some operating systems or keyboard sometimes remap the F keys to other functions such as volume control, media buttons, brightness controls, etc.  In this case, pressing the F key may result in a different key being received.  Or worst case, the operating system just steals the key event entirely.

 

Last case... if Corona does not recognize the key that was pressed, then the event's key name will be set to "unknown", but the native key code that was received will still be provided.  This is needed for those who wish to do key bindings for games.

 

I recommend that you run our "Hardware/KeyEvents" sample app on your Android device.  That app will display information about all keys that have been pressed.  Try pressing the F10 key in that app to see what's actually happening.




[topic_controls]
[/topic_controls]