RE [XERTE]: Catching key combinations

Julian Tenney Julian.Tenney at nottingham.ac.uk
Wed Jan 12 12:02:58 GMT 2011


The trouble is you can't get a keyDown event from the ALT key going down, and there is not Key.ALT constant for checking

if (Key.isDown(Key.ALT)){ //blah





From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Patrick Lockley
Sent: 12 January 2011 12:01
To: Xerte discussion list
Subject: RE: RE [XERTE]: Catching key combinations

I built a game once where alt worked with another key in flash?

Wasn't there some code lying around somewhere that did this - a keydownevent inside a keydownevent?

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 12 January 2011 11:54
To: Xerte discussion list
Subject: RE: RE [XERTE]: Catching key combinations

Looks like it might be troublesome then. First thing will be try and get Flash to recognise what you want, then see if we can get Xerte to handle it as well,

J

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 12 January 2011 11:46
To: Xerte list
Subject: RE: RE [XERTE]: Catching key combinations


Replicate shortcut combinations used in another program.
________________________________
From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Wed, 12 Jan 2011 09:53:50 +0000
Subject: RE: RE [XERTE]: Catching key combinations
Apparently there is no Key.ALT constant. I can't get Flash itself to respond to a key press when ALT is held down.

What are you trying to do?

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 11 January 2011 22:08
To: Xerte list
Subject: RE [XERTE]: Catching key combinations




Unfortunately, I can't get onKeyDown to fire if ALT is being held down.


================================================
Can't you wait for the key to go down and then do

If (Key.isDown(Key.ALT))
{
  //alt and the key are down
}

Sent: 18 November 2010 18:11
To: Xerte list
Subject: [Xerte] Catching key combinations


I'm trying to keep some alignment in a piece I'm porting from another tool.

Some of the buttons use ALT+someKey as shortcuts.
The onKeyDown event doesn't pick up ALT.
Any ALTernatives?

Dave

________________________________
From: d_b_burnett at hotmail.com
To: xerte at lists.nottingham.ac.uk
Subject: Catching key combinations
Date: Thu, 18 Nov 2010 13:10:51 -0500


I'm trying to keep some alignment in a piece I'm porting from another tool.

Some of the buttons use ALT+someKey as shortcuts.
The onKeyDown event doesn't pick up ALT.
Any ALTernatives?

Dave

This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.

_______________________________________________ Xerte mailing list Xerte at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20110112/cb59c9bb/attachment-0001.html


More information about the Xerte mailing list