Hello,
When running the below code on a Mac …
local options = { text = "????", x = 128, y = 64 } local text = display.newText( options ) Runtime:addEventListener( "key", function( event ) text.text = event.keyName .. " : " .. event.descriptor .. " : " .. event.nativeKeyCode print( event.keyName, event.descriptor, event.nativeKeyCode ) end )
… and pressing the PageUp or PageDown keys, the output shows both key events have “pageUp” for the keyName/descriptor.
This happens with both MacOS builds and when running in the simulator.
BTW, the nativeKeyCode’s are correct: 116 for PgUp, 121 for PgDn.
-David