You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Red

Trainee

  • "Red" started this thread

Posts: 98

Location: Australia

Occupation: Virtual tour creator, VR app developer

  • Send private message

1

Tuesday, April 5th 2016, 8:03am

Keydown event trigger issue

Hi,

I've got a splash screen of sorts and have assigned the ESC key to start the tour.

It seems that a mouse click is required somewhere in the pano area before the onkeydown event can be detected. I've tried to change fov, and move the y and y values onstart, etc but that doesn't solve it.

Was wondering if there's any way for the keydown event to be detected directly on first load without any other interaction with the pano.

Cheers

jordi

Intermediate

Posts: 465

Location: Barcelona

Occupation: creating ideas & coding them

  • Send private message

2

Tuesday, April 5th 2016, 9:55am

you also need to load a pano to get key events...

Would love to have them without the click and loading the pano..
everpano.com step beyond 360

Red

Trainee

  • "Red" started this thread

Posts: 98

Location: Australia

Occupation: Virtual tour creator, VR app developer

  • Send private message

3

Tuesday, April 5th 2016, 10:56am

Thanks for the reply Jordi.

Apologies, my splash screen is not just that - a pano is loaded at the start (a url include) with a graphic, but still no go.

4

Friday, April 8th 2016, 7:12am

Hi,

in the new release this have been changed - there the viewer automatically gets the input focus on startup. Then directly using the keyboard is possible.

See here for more information:
http://krpano.com/docu/html/#focus

Best regards,
Klaus

Red

Trainee

  • "Red" started this thread

Posts: 98

Location: Australia

Occupation: Virtual tour creator, VR app developer

  • Send private message

5

Saturday, April 9th 2016, 4:29am

Many thanks again Klaus!