1 decade ago by RomainT
Hello,
I created a module (called Texter) to display large amount of text with pagination. On such a Texter (I'll release it later), I use arrows to navigate : UP for previous, DOWN for next, RIGHT for end and LEFT for begin).
http://img810.imageshack.us/img810/8409/capturedcran20110718120.png
Then I extended it to display an interactive Menu on the page. Everything works but there is a little flaw : when I'm on a menu, I usually use arrows UP and DOWN to navigate (with a circular binding : DOWN on the last element send back to the first one) so I issue a conflict.
How could I deal with that ? Maybe there is a way to temporarily unbind a key or catch the event ? Any suggestion ? :)
Thanks a lot !
I created a module (called Texter) to display large amount of text with pagination. On such a Texter (I'll release it later), I use arrows to navigate : UP for previous, DOWN for next, RIGHT for end and LEFT for begin).
http://img810.imageshack.us/img810/8409/capturedcran20110718120.png
Then I extended it to display an interactive Menu on the page. Everything works but there is a little flaw : when I'm on a menu, I usually use arrows UP and DOWN to navigate (with a circular binding : DOWN on the last element send back to the first one) so I issue a conflict.
How could I deal with that ? Maybe there is a way to temporarily unbind a key or catch the event ? Any suggestion ? :)
Thanks a lot !