Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

Samstag, 16. Januar 2016, 18:35

How to give "focus" to pano for keyboard control ?

Everything is in the title.

I have the following scenario:


An image stand in the pano, explaining the user he can rotate the pano with keyboard arrows. He click on the picture, the picture disappear. -> I'm looking for a way to give "focus" to the pano on one click event, so that the user can start rotate the pano straight away, without having to find out he has to click first on the pano to be able to control it with the keyboard arrows.

Any idea ? Is there some kind of "getFocus" function which I couldn't find ?

Thanks !

2

Dienstag, 19. Januar 2016, 21:13

Hi,

right, at the moment a click into the pano itself is required to give krpano the focus and to enable the keyboard control - but it should give krpano also the focus when clicking any other element inside krpano - I will improve this (and I will look for way/API to set the focus also directly).

As workaround you could try this Javascript code to give krpano the focus:

Quellcode

1
2
3
4
5
function krpano_focus(id)
{
  document.getElementById(id).focus();
  window.activekrpanowindow = id;
}


and then e.g. call:

Quellcode

1
krpano_focus("krpanoSWFObject");


(where "krpanoSWFObject" is the id that will be set during embedding).

Best regards,
Klaus

3

Donnerstag, 21. Januar 2016, 12:11

Hi Klaus,

Thank you very much for your answer ! I'm gonna try that ! *thumbup*


Best,


Oli

4

Dienstag, 23. Februar 2016, 18:00

Hey,

is there already any development concerning this functionality ? Is there now a way to make the pano controllable directly with the keyboard's arrows after loading, without having to click in it first ?

5

Mittwoch, 24. Februar 2016, 21:00

Hi,

yes, that will be in the next release (this is already finished).

Best regards,
Klaus

6

Freitag, 26. Februar 2016, 15:44

Wow, thanks Klaus !

Looks like you're making the job done very efficiently ! *thumbsup*