Page 1 of 1

Canvas to receive TAB key

Posted: Fri Sep 04, 2015 9:57 pm
by said
Hi,

Perhaps the times are now for fixing bugs with the new 5.4 ... but it would be really nice to optionally allow canvas gadgets to receive the TAB key (in #PB_EventType_KeyDown for example); Right now pressing a tab over a canvas will move the focus to the next gadget and we have no chance to process tab keys inside the canvas gadget; This is badly needed when using canvas to create custom gadgets with user input

Thanks


Oops! I posted this in the wrong section :!: This is supposed to be in the Features Requests :oops: Can a moderator pls move this to the right section ?

Re: Canvas to receive TAB key

Posted: Fri Sep 04, 2015 10:39 pm
by davido
+1

Re: Canvas to receive TAB key

Posted: Sat Sep 05, 2015 12:11 pm
by Trond
Have you tried AddKeyboardShortcut(Tab) every time the gadget receives keyboard focus, and RemoveKeyboardShortcut(Tab) every time it loses focus?

Re: Canvas to receive TAB key

Posted: Sat Sep 05, 2015 6:08 pm
by said
Trond wrote:Have you tried AddKeyboardShortcut(Tab) every time the gadget receives keyboard focus, and RemoveKeyboardShortcut(Tab) every time it loses focus?
Yes this is the only native work around that i could use but the issue is that once you call RemoveKeyboardShortcut(Tab) when exiting the canvas, then the tab key is no longer acting as expected in that window :? :( Would be enough if we can at least restore initial function of the TAB key on exiting the canvas .... i could not find a way on how this can be done :!: If you/anyone have/has an idea, it would be appreciated :D

Re: Canvas to receive TAB key

Posted: Sat Sep 05, 2015 7:09 pm
by Trond
That must be a bug. It should be removable.