| To: | REALbasic NUG Italian <realbasic-nug dot it at lists dot realsoftware dot com> |
|---|---|
| Subject: | Re: Keydown Event |
| From: | Luca Infante <l dot infante at poc dot it> |
| Date: | Fri, 10 Feb 2006 19:28:59 +0100 |
| Delivered-to: | realbasic-nug dot it at lists dot realsoftware dot com |
| References: | <7E143215-EE18-4E14-A0EE-2E553ED65B73 at mclink dot it> <D71BA035-91F4-4700-B6E4-9F7A6C4F366C at elbrigante dot it> <CBB526BE-0DFD-4D3C-B883-1DB500BCD126 at mclink dot it> <a06230900c0116918db3e at [192 dot 168 dot 2 dot 2]> <9980273A-5F90-402E-B44E-B11B1346FCE4 at sqlabs dot net> <a06230904c01276f26a18 at [192 dot 168 dot 2 dot 2]> <F2BEA44C-8431-480E-B4ED-F458700F1792 at tiscali dot it> <a06230906c0127c69b1dc at [192 dot 168 dot 2 dot 2]> <F3CB2015-8C1D-45FC-BF65-9A242FA2E976 at yahoo dot it> |
On 10/feb/06, at 18:25, Luca Infante wrote:A me risulta che il codice ASCII 53 corrisponda al numero 5. ESC dovrebbe essere il 27.Infatti hai ragione per quando lavori nel keydown event. Invece se sei in un action e usi keyboard.asynkeydown devi trovare il keymap del tasto che è diverso da quello ascii. L'ho trovato Grazie a Google!!!!GiovanniCiao LucaLuca,attenzione che il keymap code non è universale. Cambia a seconda della localizzazione della tastiera. Posso azzardare che il tasto ESC abbia all'incirca lo stesso keymap code in tutte tastiere, ma io non lo darei per scontato. Infatti mi sembra che ho letto che da problemi. Ma il 53 l'ho trovato sul support della REAL e non era riferito ad una tastiera italiana. E visto che sulla mia ha funzionato credo vada dappertutto. Comunque farò testare, grazie per l'avvertimento. Se invece la tua applicazione deve girare unicamente su una tastiera italiana allora il problema non si pone.Altra cosa, invece di usare un timer che consuma CPU per nulla, inserisci il test nell'evento EnableMenuItems della finestra. Ok, provo. Thanks!!!! Ciao Massimo Valle Ciao Luca |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Keydown Event, Massimo Valle |
|---|---|
| Next by Date: | Re: Keydown Event, Luca Infante |
| Previous by Thread: | Re: Keydown Event, Massimo Valle |
| Next by Thread: | Re: Keydown Event, Luca Infante |
| Indexes: | [Date] [Thread] [Top] [All Lists] |