[Xerte] default button

Julian Tenney Julian.Tenney at nottingham.ac.uk
Fri Oct 24 16:53:33 BST 2008


Selection.setFocus(myButtonID) I think.

 

You can listen for rootIcon.onKeyDown to listen for keypresses, so you
can have an event responses for y and n and the yes / no buttons as
well. Being able to define the action key would be useful - I'll look at
that next week.

 

 

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Elly Langewis
Sent: Friday, October 24, 2008 4:48 PM
To: Xerte discussion list
Subject: Re: [Xerte] default button

 

Thanks Julian, that explains. 

Is it possible to set the focus to a certain button? And is it possible
to make a button react to a certain key pressed, like when I have two
buttons, yes and no, and want the user to be able to press Y or N
(besides making a third response to catch that)?

 

Elly

On Fri, Oct 24, 2008 at 5:03 PM, Julian Tenney
<Julian.Tenney at nottingham.ac.uk> wrote:

It's built in accessibility. It will only respond to keys whilst it has
the focus. When you click elsewhere, the focus moves away from the
button and it doesn't respond to keypresses. All the interaction
responses can be controlled with the keyboard.

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Elly Langewis
Sent: Friday, October 24, 2008 3:41 PM
To: Xerte discussion list
Subject: [Xerte] default button

 

Hi,

 

I've got a perpetual button ('Menu') in my Entry Frame. For some reason,
when I have used the button (just once), this button will also get
pressed when I hit the space bar. As I have not found yet how to let a
button react to key responses I was quite surprised...

Does anyone know what caused this behaviour? It disappeats after using a
text entry response, but after hitting the button again it reacts to the
space bar again.

 

TIA

 

Elly

 


_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte




-- 
Elly Langewis
courseware developer
Department of Biology
Utrecht University

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20081024/b84e9740/attachment.html


More information about the Xerte mailing list