Re: [Gnoga-list] On_Key_Press_Handler.

2015-06-03 Thread Pascal
Hello David, many thanks to you ;-)

Well, the section between marks seems not useful since C is already set:
 declare
E : Keyboard_Event_Record :=
  Parse_Keyboard_Event (Message, Key_Press);
C : Character :=
  Ada.Characters.Conversions.To_Character (E.Key_Char);
 begin
Object.Fire_On_Key_Press (E);
Object.Fire_On_Wide_Character (E.Key_Char);
 HEAD

if E.Key_Code  255 then
   C := Character'Val (0);
else
   C := Character'Val (E.Key_Code);
end if;

 END
Object.Fire_On_Character (C);
 end;

Regards, Pascal.
http://blady.pagesperso-orange.fr


Le 2 juin 2015 à 21:41, Rabbi David Botton da...@botton.com a écrit :

 I have added to git your patch and added our key_code_list as 
 Gnoga.Types.Key_Codes.ads
 
 Thanks!!
 David Botton
 
 
 On Thu, Apr 9, 2015 at 4:20 PM Pascal blady-...@users.sf.net wrote:
 Thanks, for your contributions.
 
 Here is a modified package:
 
 
 More over, regarding browsers behaviors, I propose to split the Javascript 
 which code into keyCode and charCode.
 Here is Firefox behavior:
 - a key- keyEvent + keyCode + charCode + altKey 
 +ctrlKey + shiftKey + metaKey
 2015-04-09 21:28:38.58 : KEY_DOWN, 65,NUL,FALSE,FALSE,FALSE,FALSE
 2015-04-09 21:28:38.58 : KEY_PRESS, 0,'a',FALSE,FALSE,FALSE,FALSE
 2015-04-09 21:28:38.67 : KEY_UP, 65,NUL,FALSE,FALSE,FALSE,FALSE
 
 - F1  key- keyEvent + keyCode + charCode + altKey 
 +ctrlKey + shiftKey + metaKey
 2015-04-09 21:38:25.44 : KEY_DOWN, 112,NUL,FALSE,FALSE,FALSE,FALSE
 2015-04-09 21:38:25.44 : KEY_PRESS, 112,NUL,FALSE,FALSE,FALSE,FALSE
 2015-04-09 21:38:25.51 : KEY_UP, 112,NUL,FALSE,FALSE,FALSE,FALSE
 
 KEY_DOWN and KEY_UP set always keyCode to javascript code and charCode to 
 null.
 KEY_PRESS set keyCode to null and charCode to Unicode character (i.e. 
 Wide_Character) for a common character and set keyCode to javascript code and 
 charCode to null for a special key.
 Thus it is easier to find out common characters and special keys.
 
 Here is a GNOGA patch proposal:
 
 
 And modified test code:
 
 
 What is your feedback?
 
 Regards, Pascal.
 http://blady.pagesperso-orange.fr
 
 
 Le 9 avr. 2015 à 05:33, Jeremiah Breeden jeremiah.bree...@gmail.com a écrit 
 :
 
  As a followup, Key_press seems to follow the ASCII table (where the key has 
  an ASCII rep), at least for some of the browsers.  Worth looking into 
  probably.
 
  On Wed, Apr 8, 2015 at 11:21 PM, Jeremiah Breeden 
  jeremiah.bree...@gmail.com wrote:
  I didn't find a Key_press table, but for key_down and key_up, 
  javascripter.net suggests:
  http://www.javascripter.net/faq/keycodes.htm
 
  I don't have a way to verify all of those, but come cursory checks versus 
  what you posted here seem to match.
 
  On Tue, Apr 7, 2015 at 5:45 PM, Jeffrey R. Carter jrcar...@acm.org wrote:
  On 04/07/2015 01:02 PM, Pascal wrote:
   So I went deeper in Javascript particularity particularly with the help 
   of:
   http://javascript.info/tutorial/keyboard-events
  
   Thus Key_up and Key_Down occur for each key press and release then key 
   code is apparently not so standardized across browsers.
   See http://unixpapa.com/js/key.html.
  
   Nevertheless I provide a package Key_Code_List with the correspondance 
   between key and code as I found it on my Mac, Safari and French keyboard.
   Other OS and browsers and keyboard may give other couples.
   Please come back to me with the couples or add them directly in the 
   package.
  With my US keyboard and Firefox, Insert gives
 
  2015-04-07 14:36:34.43 : KEY_DOWN, 45,FALSE,FALSE,FALSE,FALSE
  2015-04-07 14:36:34.43 : KEY_PRESS, 0,FALSE,FALSE,FALSE,FALSE
  2015-04-07 14:36:34.48 : KEY_UP, 45,FALSE,FALSE,FALSE,FALSE
 
 ...
  HTH
 
  --
  Jeff Carter
  Ada has made you lazy and careless. You can write programs in C that
  are just as safe by the simple application of super-human diligence.
  E. Robert Tisdale
  72
 
 
 --
 BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
 Develop your own process in accordance with the BPMN 2 standard
 Learn Process modeling best practices with Bonita BPM through live exercises
 http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
 source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF___
 Gnoga-list mailing list
 Gnoga-list@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gnoga-list
 --
 ___
 Gnoga-list mailing list
 Gnoga-list@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gnoga-list


--

Re: [Gnoga-list] On_Key_Press_Handler.

2015-06-03 Thread Rabbi David Botton
fixed and pushed

On Wed, Jun 3, 2015 at 3:44 PM Pascal blady-...@users.sf.net wrote:

 Hello David, many thanks to you ;-)

 Well, the section between marks seems not useful since C is already set:
  declare
 E : Keyboard_Event_Record :=
   Parse_Keyboard_Event (Message, Key_Press);
 C : Character :=
   Ada.Characters.Conversions.To_Character (E.Key_Char);
  begin
 Object.Fire_On_Key_Press (E);
 Object.Fire_On_Wide_Character (E.Key_Char);
  HEAD

 if E.Key_Code  255 then
C := Character'Val (0);
 else
C := Character'Val (E.Key_Code);
 end if;

  END
 Object.Fire_On_Character (C);
  end;

 Regards, Pascal.
 http://blady.pagesperso-orange.fr


 Le 2 juin 2015 à 21:41, Rabbi David Botton da...@botton.com a écrit :

  I have added to git your patch and added our key_code_list as
 Gnoga.Types.Key_Codes.ads
 
  Thanks!!
  David Botton
 
 
  On Thu, Apr 9, 2015 at 4:20 PM Pascal blady-...@users.sf.net wrote:
  Thanks, for your contributions.
 
  Here is a modified package:
 
 
  More over, regarding browsers behaviors, I propose to split the
 Javascript which code into keyCode and charCode.
  Here is Firefox behavior:
  - a key- keyEvent + keyCode + charCode + altKey
 +ctrlKey + shiftKey + metaKey
  2015-04-09 21:28:38.58 : KEY_DOWN, 65,NUL,FALSE,FALSE,FALSE,FALSE
  2015-04-09 21:28:38.58 : KEY_PRESS, 0,'a',FALSE,FALSE,FALSE,FALSE
  2015-04-09 21:28:38.67 : KEY_UP, 65,NUL,FALSE,FALSE,FALSE,FALSE
 
  - F1  key- keyEvent + keyCode + charCode +
 altKey +ctrlKey + shiftKey + metaKey
  2015-04-09 21:38:25.44 : KEY_DOWN, 112,NUL,FALSE,FALSE,FALSE,FALSE
  2015-04-09 21:38:25.44 : KEY_PRESS, 112,NUL,FALSE,FALSE,FALSE,FALSE
  2015-04-09 21:38:25.51 : KEY_UP, 112,NUL,FALSE,FALSE,FALSE,FALSE
 
  KEY_DOWN and KEY_UP set always keyCode to javascript code and charCode
 to null.
  KEY_PRESS set keyCode to null and charCode to Unicode character (i.e.
 Wide_Character) for a common character and set keyCode to javascript code
 and charCode to null for a special key.
  Thus it is easier to find out common characters and special keys.
 
  Here is a GNOGA patch proposal:
 
 
  And modified test code:
 
 
  What is your feedback?
 
  Regards, Pascal.
  http://blady.pagesperso-orange.fr
 
 
  Le 9 avr. 2015 à 05:33, Jeremiah Breeden jeremiah.bree...@gmail.com a
 écrit :
 
   As a followup, Key_press seems to follow the ASCII table (where the
 key has an ASCII rep), at least for some of the browsers.  Worth looking
 into probably.
  
   On Wed, Apr 8, 2015 at 11:21 PM, Jeremiah Breeden 
 jeremiah.bree...@gmail.com wrote:
   I didn't find a Key_press table, but for key_down and key_up,
 javascripter.net suggests:
   http://www.javascripter.net/faq/keycodes.htm
  
   I don't have a way to verify all of those, but come cursory checks
 versus what you posted here seem to match.
  
   On Tue, Apr 7, 2015 at 5:45 PM, Jeffrey R. Carter jrcar...@acm.org
 wrote:
   On 04/07/2015 01:02 PM, Pascal wrote:
So I went deeper in Javascript particularity particularly with the
 help of:
http://javascript.info/tutorial/keyboard-events
   
Thus Key_up and Key_Down occur for each key press and release then
 key code is apparently not so standardized across browsers.
See http://unixpapa.com/js/key.html.
   
Nevertheless I provide a package Key_Code_List with the
 correspondance between key and code as I found it on my Mac, Safari and
 French keyboard.
Other OS and browsers and keyboard may give other couples.
Please come back to me with the couples or add them directly in the
 package.
   With my US keyboard and Firefox, Insert gives
  
   2015-04-07 14:36:34.43 : KEY_DOWN, 45,FALSE,FALSE,FALSE,FALSE
   2015-04-07 14:36:34.43 : KEY_PRESS, 0,FALSE,FALSE,FALSE,FALSE
   2015-04-07 14:36:34.48 : KEY_UP, 45,FALSE,FALSE,FALSE,FALSE
  
  ...
   HTH
  
   --
   Jeff Carter
   Ada has made you lazy and careless. You can write programs in C that
   are just as safe by the simple application of super-human diligence.
   E. Robert Tisdale
   72
  
 
 
 --
  BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
  Develop your own process in accordance with the BPMN 2 standard
  Learn Process modeling best practices with Bonita BPM through live
 exercises
  http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual-
 event?utm_
 
 source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF___
  Gnoga-list mailing list
  Gnoga-list@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/gnoga-list
 
 --
  ___
  Gnoga-list mailing list
  

Re: [Gnoga-list] On_Key_Press_Handler.

2015-06-02 Thread Rabbi David Botton
I have added to git your patch and added our key_code_list as
Gnoga.Types.Key_Codes.ads

Thanks!!
David Botton


On Thu, Apr 9, 2015 at 4:20 PM Pascal blady-...@users.sf.net wrote:

 Thanks, for your contributions.

 Here is a modified package:


 More over, regarding browsers behaviors, I propose to split the Javascript
 which code into keyCode and charCode.
 Here is Firefox behavior:
 - a key- keyEvent + keyCode + charCode + altKey
 +ctrlKey + shiftKey + metaKey
 2015-04-09 21:28:38.58 : KEY_DOWN, 65,NUL,FALSE,FALSE,FALSE,FALSE
 2015-04-09 21:28:38.58 : KEY_PRESS, 0,'a',FALSE,FALSE,FALSE,FALSE
 2015-04-09 21:28:38.67 : KEY_UP, 65,NUL,FALSE,FALSE,FALSE,FALSE

 - F1  key- keyEvent + keyCode + charCode + altKey
 +ctrlKey + shiftKey + metaKey
 2015-04-09 21:38:25.44 : KEY_DOWN, 112,NUL,FALSE,FALSE,FALSE,FALSE
 2015-04-09 21:38:25.44 : KEY_PRESS, 112,NUL,FALSE,FALSE,FALSE,FALSE
 2015-04-09 21:38:25.51 : KEY_UP, 112,NUL,FALSE,FALSE,FALSE,FALSE

 KEY_DOWN and KEY_UP set always keyCode to javascript code and charCode to
 null.
 KEY_PRESS set keyCode to null and charCode to Unicode character (i.e.
 Wide_Character) for a common character and set keyCode to javascript code
 and charCode to null for a special key.
 Thus it is easier to find out common characters and special keys.

 Here is a GNOGA patch proposal:


 And modified test code:


 What is your feedback?

 Regards, Pascal.
 http://blady.pagesperso-orange.fr


 Le 9 avr. 2015 à 05:33, Jeremiah Breeden jeremiah.bree...@gmail.com a
 écrit :

  As a followup, Key_press seems to follow the ASCII table (where the key
 has an ASCII rep), at least for some of the browsers.  Worth looking into
 probably.
 
  On Wed, Apr 8, 2015 at 11:21 PM, Jeremiah Breeden 
 jeremiah.bree...@gmail.com wrote:
  I didn't find a Key_press table, but for key_down and key_up,
 javascripter.net suggests:
  http://www.javascripter.net/faq/keycodes.htm
 
  I don't have a way to verify all of those, but come cursory checks
 versus what you posted here seem to match.
 
  On Tue, Apr 7, 2015 at 5:45 PM, Jeffrey R. Carter jrcar...@acm.org
 wrote:
  On 04/07/2015 01:02 PM, Pascal wrote:
   So I went deeper in Javascript particularity particularly with the
 help of:
   http://javascript.info/tutorial/keyboard-events
  
   Thus Key_up and Key_Down occur for each key press and release then key
 code is apparently not so standardized across browsers.
   See http://unixpapa.com/js/key.html.
  
   Nevertheless I provide a package Key_Code_List with the correspondance
 between key and code as I found it on my Mac, Safari and French keyboard.
   Other OS and browsers and keyboard may give other couples.
   Please come back to me with the couples or add them directly in the
 package.
  With my US keyboard and Firefox, Insert gives
 
  2015-04-07 14:36:34.43 : KEY_DOWN, 45,FALSE,FALSE,FALSE,FALSE
  2015-04-07 14:36:34.43 : KEY_PRESS, 0,FALSE,FALSE,FALSE,FALSE
  2015-04-07 14:36:34.48 : KEY_UP, 45,FALSE,FALSE,FALSE,FALSE
 
 ...
  HTH
 
  --
  Jeff Carter
  Ada has made you lazy and careless. You can write programs in C that
  are just as safe by the simple application of super-human diligence.
  E. Robert Tisdale
  72
 


 --
 BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
 Develop your own process in accordance with the BPMN 2 standard
 Learn Process modeling best practices with Bonita BPM through live
 exercises
 http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual-
 event?utm_

 source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF___
 Gnoga-list mailing list
 Gnoga-list@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gnoga-list

--
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] On_Key_Press_Handler.

2015-04-09 Thread Pascal
Thanks, for your contributions.

Here is a modified package:


key_code_list.ads
Description: Binary data


More over, regarding browsers behaviors, I propose to split the Javascript 
which code into keyCode and charCode.
Here is Firefox behavior:
- a key- keyEvent + keyCode + charCode + altKey 
+ctrlKey + shiftKey + metaKey 
2015-04-09 21:28:38.58 : KEY_DOWN, 65,NUL,FALSE,FALSE,FALSE,FALSE
2015-04-09 21:28:38.58 : KEY_PRESS, 0,'a',FALSE,FALSE,FALSE,FALSE
2015-04-09 21:28:38.67 : KEY_UP, 65,NUL,FALSE,FALSE,FALSE,FALSE

- F1  key- keyEvent + keyCode + charCode + altKey 
+ctrlKey + shiftKey + metaKey 
2015-04-09 21:38:25.44 : KEY_DOWN, 112,NUL,FALSE,FALSE,FALSE,FALSE
2015-04-09 21:38:25.44 : KEY_PRESS, 112,NUL,FALSE,FALSE,FALSE,FALSE
2015-04-09 21:38:25.51 : KEY_UP, 112,NUL,FALSE,FALSE,FALSE,FALSE

KEY_DOWN and KEY_UP set always keyCode to javascript code and charCode to null.
KEY_PRESS set keyCode to null and charCode to Unicode character (i.e. 
Wide_Character) for a common character and set keyCode to javascript code and 
charCode to null for a special key. 
Thus it is easier to find out common characters and special keys.

Here is a GNOGA patch proposal:


patch8.diff
Description: Binary data


And modified test code:


essai9.adb
Description: Binary data


What is your feedback?

Regards, Pascal.
http://blady.pagesperso-orange.fr


Le 9 avr. 2015 à 05:33, Jeremiah Breeden jeremiah.bree...@gmail.com a écrit :

 As a followup, Key_press seems to follow the ASCII table (where the key has 
 an ASCII rep), at least for some of the browsers.  Worth looking into 
 probably.
 
 On Wed, Apr 8, 2015 at 11:21 PM, Jeremiah Breeden 
 jeremiah.bree...@gmail.com wrote:
 I didn't find a Key_press table, but for key_down and key_up, 
 javascripter.net suggests:
 http://www.javascripter.net/faq/keycodes.htm
 
 I don't have a way to verify all of those, but come cursory checks versus 
 what you posted here seem to match.
 
 On Tue, Apr 7, 2015 at 5:45 PM, Jeffrey R. Carter jrcar...@acm.org wrote:
 On 04/07/2015 01:02 PM, Pascal wrote:
  So I went deeper in Javascript particularity particularly with the help of:
  http://javascript.info/tutorial/keyboard-events
 
  Thus Key_up and Key_Down occur for each key press and release then key code 
  is apparently not so standardized across browsers.
  See http://unixpapa.com/js/key.html.
 
  Nevertheless I provide a package Key_Code_List with the correspondance 
  between key and code as I found it on my Mac, Safari and French keyboard.
  Other OS and browsers and keyboard may give other couples.
  Please come back to me with the couples or add them directly in the package.
 With my US keyboard and Firefox, Insert gives
 
 2015-04-07 14:36:34.43 : KEY_DOWN, 45,FALSE,FALSE,FALSE,FALSE
 2015-04-07 14:36:34.43 : KEY_PRESS, 0,FALSE,FALSE,FALSE,FALSE
 2015-04-07 14:36:34.48 : KEY_UP, 45,FALSE,FALSE,FALSE,FALSE
 
...
 HTH
 
 --
 Jeff Carter
 Ada has made you lazy and careless. You can write programs in C that
 are just as safe by the simple application of super-human diligence.
 E. Robert Tisdale
 72
 

--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] On_Key_Press_Handler.

2015-04-08 Thread Jeremiah Breeden
As a followup, Key_press seems to follow the ASCII table (where the key has
an ASCII rep), at least for some of the browsers.  Worth looking into
probably.

On Wed, Apr 8, 2015 at 11:21 PM, Jeremiah Breeden 
jeremiah.bree...@gmail.com wrote:

 I didn't find a Key_press table, but for key_down and key_up,
 javascripter.net suggests:
 http://www.javascripter.net/faq/keycodes.htm

 I don't have a way to verify all of those, but come cursory checks versus
 what you posted here seem to match.

 On Tue, Apr 7, 2015 at 5:45 PM, Jeffrey R. Carter jrcar...@acm.org
 wrote:

 On 04/07/2015 01:02 PM, Pascal wrote:
  So I went deeper in Javascript particularity particularly with the help
 of:
  http://javascript.info/tutorial/keyboard-events
 
  Thus Key_up and Key_Down occur for each key press and release then key
 code is apparently not so standardized across browsers.
  See http://unixpapa.com/js/key.html.
 
  Nevertheless I provide a package Key_Code_List with the correspondance
 between key and code as I found it on my Mac, Safari and French keyboard.
  Other OS and browsers and keyboard may give other couples.
  Please come back to me with the couples or add them directly in the
 package.
 With my US keyboard and Firefox, Insert gives

 2015-04-07 14:36:34.43 : KEY_DOWN, 45,FALSE,FALSE,FALSE,FALSE
 2015-04-07 14:36:34.43 : KEY_PRESS, 0,FALSE,FALSE,FALSE,FALSE
 2015-04-07 14:36:34.48 : KEY_UP, 45,FALSE,FALSE,FALSE,FALSE

 Num_Lock
 2015-04-07 14:38:42.23 : KEY_DOWN, 144,FALSE,FALSE,FALSE,FALSE
 2015-04-07 14:38:42.27 : KEY_UP, 144,FALSE,FALSE,FALSE,FALSE

 The punctuation keys

 `~
 2015-04-07 14:39:36.07 : KEY_DOWN, 192,FALSE,FALSE,FALSE,FALSE
 2015-04-07 14:39:36.08 : KEY_PRESS, 96,FALSE,FALSE,FALSE,FALSE
 2015-04-07 14:39:36.14 : KEY_UP, 192,FALSE,FALSE,FALSE,FALSE

 -_
 2015-04-07 14:40:02.14 : KEY_DOWN, 173,FALSE,FALSE,FALSE,FALSE
 2015-04-07 14:40:02.14 : KEY_PRESS, 45,FALSE,FALSE,FALSE,FALSE
 2015-04-07 14:40:02.18 : KEY_UP, 173,FALSE,FALSE,FALSE,FALSE

 =+
 2015-04-07 14:40:22.77 : KEY_DOWN, 61,FALSE,FALSE,FALSE,FALSE
 2015-04-07 14:40:22.77 : KEY_PRESS, 61,FALSE,FALSE,FALSE,FALSE
 2015-04-07 14:40:22.82 : KEY_UP, 61,FALSE,FALSE,FALSE,FALSE

 [{
 2015-04-07 14:40:45.87 : KEY_DOWN, 219,FALSE,FALSE,FALSE,FALSE
 2015-04-07 14:40:45.87 : KEY_PRESS, 91,FALSE,FALSE,FALSE,FALSE
 2015-04-07 14:40:45.94 : KEY_UP, 219,FALSE,FALSE,FALSE,FALSE

 ]}
 2015-04-07 14:41:06.81 : KEY_DOWN, 221,FALSE,FALSE,FALSE,FALSE
 2015-04-07 14:41:06.81 : KEY_PRESS, 93,FALSE,FALSE,FALSE,FALSE
 2015-04-07 14:41:06.87 : KEY_UP, 221,FALSE,FALSE,FALSE,FALSE

 \|
 2015-04-07 14:41:25.62 : KEY_DOWN, 220,FALSE,FALSE,FALSE,FALSE
 2015-04-07 14:41:25.62 : KEY_PRESS, 92,FALSE,FALSE,FALSE,FALSE
 2015-04-07 14:41:25.67 : KEY_UP, 220,FALSE,FALSE,FALSE,FALSE
 (nothing is displayed)

 ;:
 2015-04-07 14:41:59.90 : KEY_DOWN, 59,FALSE,FALSE,FALSE,FALSE
 2015-04-07 14:41:59.91 : KEY_PRESS, 59,FALSE,FALSE,FALSE,FALSE
 2015-04-07 14:41:59.96 : KEY_UP, 59,FALSE,FALSE,FALSE,FALSE

 '
 2015-04-07 14:42:18.62 : KEY_DOWN, 222,FALSE,FALSE,FALSE,FALSE
 2015-04-07 14:42:18.63 : KEY_PRESS, 39,FALSE,FALSE,FALSE,FALSE
 2015-04-07 14:42:18.69 : KEY_UP, 222,FALSE,FALSE,FALSE,FALSE

 ,
 2015-04-07 14:42:47.20 : KEY_DOWN, 188,FALSE,FALSE,FALSE,FALSE
 2015-04-07 14:42:47.20 : KEY_PRESS, 44,FALSE,FALSE,FALSE,FALSE
 2015-04-07 14:42:47.29 : KEY_UP, 188,FALSE,FALSE,FALSE,FALSE

 .
 2015-04-07 14:43:07.76 : KEY_DOWN, 190,FALSE,FALSE,FALSE,FALSE
 2015-04-07 14:43:07.76 : KEY_PRESS, 46,FALSE,FALSE,FALSE,FALSE
 2015-04-07 14:43:07.84 : KEY_UP, 190,FALSE,FALSE,FALSE,FALSE

 /?
 2015-04-07 14:43:32.46 : KEY_DOWN, 191,FALSE,FALSE,FALSE,FALSE
 2015-04-07 14:43:32.46 : KEY_PRESS, 47,FALSE,FALSE,FALSE,FALSE
 2015-04-07 14:43:32.50 : KEY_UP, 191,FALSE,FALSE,FALSE,FALSE
 (this also opens the Quick Find box)

 HTH

 --
 Jeff Carter
 Ada has made you lazy and careless. You can write programs in C that
 are just as safe by the simple application of super-human diligence.
 E. Robert Tisdale
 72




 --
 BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
 Develop your own process in accordance with the BPMN 2 standard
 Learn Process modeling best practices with Bonita BPM through live
 exercises
 http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual-
 event?utm_
 source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF
 ___
 Gnoga-list mailing list
 Gnoga-list@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gnoga-list



--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_

Re: [Gnoga-list] On_Key_Press_Handler.

2015-04-07 Thread Pascal
Hello,

So I went deeper in Javascript particularity particularly with the help of:
http://javascript.info/tutorial/keyboard-events

Thus Key_up and Key_Down occur for each key press and release then key code is 
apparently not so standardized across browsers.
See http://unixpapa.com/js/key.html.

Nevertheless I provide a package Key_Code_List with the correspondance between 
key and code as I found it on my Mac, Safari and French keyboard.
Other OS and browsers and keyboard may give other couples.
Please come back to me with the couples or add them directly in the package.


key_code_list.ads
Description: Binary data

An example source code Essai9.adb may help you.


essai9.adb
Description: Binary data


Then Key_Press occur only if the key or combination of keys gives a common 
character.
Key_Code is Unicode or Wide_Character.
So at the moment no need for UTF-8.

I will compile all of that in some documentation.

Regards, Pascal.
http://blady.pagesperso-orange.fr


Le 6 avr. 2015 à 15:18, Rabbi David Botton da...@botton.com a écrit :

 Sure go ahead.
 
 On Mon, Apr 6, 2015 at 6:17 AM Pascal blady-...@users.sf.net wrote:
 Hello David,
 
 If raw codes are browser independent they could be included in GNOGA.
 
 Moreover, Gtk for instance offers 2 attributes :
 keyval which returns raw code of the key and keystring which returns UTF-8 
 string code of the key (null string if special key).
 
 What do you think of include both in GNOGA?
 
 I can propose something if you agree.
 
 Regards, Pascal.
 http://blady.pagesperso-orange.fr
 
 
 Le 6 avr. 2015 à 03:11, Rabbi David Botton da...@botton.com a écrit :
 
  You would probably need to write some sort of look up table. The values are 
  the raw values given by the browser.
  On Sat, Apr 4, 2015 at 1:45 PM Pascal blady-...@users.sf.net wrote:
  Hello David,
 
  it is somewhat annoying that key handlers return different codes for the 
  same key.
  Is there a way to get the same value?
  As GTK is defining key values in 
  https://git.gnome.org/browse/gtk+/tree/gdk/gdkkeysyms.h.
 
  Thanks, Pascal.
  http://blady.pagesperso-orange.fr
 
 
  Le 31 mars 2015 à 23:42, Rabbi David Botton da...@botton.com a écrit :
 
   Not sure why not working but binding window will work.
  
   David Botton
   On Sun, Mar 29, 2015 at 10:57 AM Pascal blady-...@users.sf.net wrote:
   Hello David,
  
   It seems that On_Key_Press_Handler does not work with 
   gnoga.gui.View.Console.Console_View_Type.
   Thus my handles are bound to window:
 Gnoga.Application.Singleton.Initialize (IntWindow);
 IntWindow.On_Key_Press_Handler (On_Key_Press_Event'Access);
 IntWindow.On_Key_Up_Handler (On_Key_Press_Event'Access);
 IntWindow.On_Key_Down_Handler (On_Key_Press_Event'Access);
 IntWindow.On_Character_Handler (On_Key_Char_Event'Access);
  
   Is it correct?
  
   Regards, Pascal.
   http://blady.pagesperso-orange.fr
  
  
   Le 23 mars 2015 à 03:07, Rabbi David Botton da...@botton.com a écrit :
  
If you place the handler on the window, do you find the event is 
received there even if not at the view?
   
On Sun, Mar 22, 2015 at 9:32 AM Rabbi David Botton da...@botton.com 
wrote:
It seems events are consumed by the browser itself, for example page 
down is consumed by the browser on a view with a scroll bar.
   
David Botton
   
   
On Sat, Feb 28, 2015 at 8:18 PM, Rabbi David Botton da...@botton.com 
wrote:
I will give a try tomorrow and get to your other requests by tomorrow. 
Last week worked hard on hardening the connections. Still have a few 
back and forths going in with Dmitry but nailed down a number of issues.
   
David Botton
   
   
On Saturday, February 28, 2015, Pascal blady-...@users.sf.net wrote:
Hello David,
   
It seems that On_Key_Press_Handler works only bind to 
Gnoga.Gui.Window.Window_Type but not bind to 
gnoga.gui.View.Console.Console_View_Type.
   
Can you confirm?
   
The different key handlers behave strangely regarding the key stroke:
   
a:
KEY_DOWN, 65
KEY_PRESS, 97
On_Key_Char_Event,a
KEY_UP, 65
-- key down and up have upper case code of character a!
   
A:
KEY_DOWN, 16
KEY_DOWN, 65
KEY_PRESS, 65
On_Key_Char_Event,A
KEY_UP, 65
KEY_UP, 16
-- ok same code of character a in upper case
   
tab:
KEY_DOWN, 9
KEY_UP, 9
-- no key press nor character event!
   
shift:
KEY_DOWN, 16
KEY_UP, 16
-- no key press event!
-- what is the coding of key down and up?
   
=:
KEY_DOWN, 187
KEY_PRESS, 61
On_Key_Char_Event,=
KEY_UP, 187
-- what is the coding of key down and up?
   
5:
KEY_DOWN, 101
KEY_PRESS, 53
On_Key_Char_Event,5
KEY_UP, 101
-- what is the coding of key down and up?
   
page-down:
KEY_DOWN, 34
KEY_UP, 34
-- no key press event!
-- what is the coding of key down and up?
   
Is it the same on 

Re: [Gnoga-list] On_Key_Press_Handler.

2015-04-07 Thread Jeffrey R. Carter
On 04/07/2015 01:02 PM, Pascal wrote:
 So I went deeper in Javascript particularity particularly with the help of:
 http://javascript.info/tutorial/keyboard-events

 Thus Key_up and Key_Down occur for each key press and release then key code 
 is apparently not so standardized across browsers.
 See http://unixpapa.com/js/key.html.

 Nevertheless I provide a package Key_Code_List with the correspondance 
 between key and code as I found it on my Mac, Safari and French keyboard.
 Other OS and browsers and keyboard may give other couples.
 Please come back to me with the couples or add them directly in the package.
With my US keyboard and Firefox, Insert gives

2015-04-07 14:36:34.43 : KEY_DOWN, 45,FALSE,FALSE,FALSE,FALSE
2015-04-07 14:36:34.43 : KEY_PRESS, 0,FALSE,FALSE,FALSE,FALSE
2015-04-07 14:36:34.48 : KEY_UP, 45,FALSE,FALSE,FALSE,FALSE

Num_Lock
2015-04-07 14:38:42.23 : KEY_DOWN, 144,FALSE,FALSE,FALSE,FALSE
2015-04-07 14:38:42.27 : KEY_UP, 144,FALSE,FALSE,FALSE,FALSE

The punctuation keys

`~
2015-04-07 14:39:36.07 : KEY_DOWN, 192,FALSE,FALSE,FALSE,FALSE
2015-04-07 14:39:36.08 : KEY_PRESS, 96,FALSE,FALSE,FALSE,FALSE
2015-04-07 14:39:36.14 : KEY_UP, 192,FALSE,FALSE,FALSE,FALSE

-_
2015-04-07 14:40:02.14 : KEY_DOWN, 173,FALSE,FALSE,FALSE,FALSE
2015-04-07 14:40:02.14 : KEY_PRESS, 45,FALSE,FALSE,FALSE,FALSE
2015-04-07 14:40:02.18 : KEY_UP, 173,FALSE,FALSE,FALSE,FALSE

=+
2015-04-07 14:40:22.77 : KEY_DOWN, 61,FALSE,FALSE,FALSE,FALSE
2015-04-07 14:40:22.77 : KEY_PRESS, 61,FALSE,FALSE,FALSE,FALSE
2015-04-07 14:40:22.82 : KEY_UP, 61,FALSE,FALSE,FALSE,FALSE

[{
2015-04-07 14:40:45.87 : KEY_DOWN, 219,FALSE,FALSE,FALSE,FALSE
2015-04-07 14:40:45.87 : KEY_PRESS, 91,FALSE,FALSE,FALSE,FALSE
2015-04-07 14:40:45.94 : KEY_UP, 219,FALSE,FALSE,FALSE,FALSE

]}
2015-04-07 14:41:06.81 : KEY_DOWN, 221,FALSE,FALSE,FALSE,FALSE
2015-04-07 14:41:06.81 : KEY_PRESS, 93,FALSE,FALSE,FALSE,FALSE
2015-04-07 14:41:06.87 : KEY_UP, 221,FALSE,FALSE,FALSE,FALSE

\|
2015-04-07 14:41:25.62 : KEY_DOWN, 220,FALSE,FALSE,FALSE,FALSE
2015-04-07 14:41:25.62 : KEY_PRESS, 92,FALSE,FALSE,FALSE,FALSE
2015-04-07 14:41:25.67 : KEY_UP, 220,FALSE,FALSE,FALSE,FALSE
(nothing is displayed)

;:
2015-04-07 14:41:59.90 : KEY_DOWN, 59,FALSE,FALSE,FALSE,FALSE
2015-04-07 14:41:59.91 : KEY_PRESS, 59,FALSE,FALSE,FALSE,FALSE
2015-04-07 14:41:59.96 : KEY_UP, 59,FALSE,FALSE,FALSE,FALSE

'
2015-04-07 14:42:18.62 : KEY_DOWN, 222,FALSE,FALSE,FALSE,FALSE
2015-04-07 14:42:18.63 : KEY_PRESS, 39,FALSE,FALSE,FALSE,FALSE
2015-04-07 14:42:18.69 : KEY_UP, 222,FALSE,FALSE,FALSE,FALSE

,
2015-04-07 14:42:47.20 : KEY_DOWN, 188,FALSE,FALSE,FALSE,FALSE
2015-04-07 14:42:47.20 : KEY_PRESS, 44,FALSE,FALSE,FALSE,FALSE
2015-04-07 14:42:47.29 : KEY_UP, 188,FALSE,FALSE,FALSE,FALSE

.
2015-04-07 14:43:07.76 : KEY_DOWN, 190,FALSE,FALSE,FALSE,FALSE
2015-04-07 14:43:07.76 : KEY_PRESS, 46,FALSE,FALSE,FALSE,FALSE
2015-04-07 14:43:07.84 : KEY_UP, 190,FALSE,FALSE,FALSE,FALSE

/?
2015-04-07 14:43:32.46 : KEY_DOWN, 191,FALSE,FALSE,FALSE,FALSE
2015-04-07 14:43:32.46 : KEY_PRESS, 47,FALSE,FALSE,FALSE,FALSE
2015-04-07 14:43:32.50 : KEY_UP, 191,FALSE,FALSE,FALSE,FALSE
(this also opens the Quick Find box)

HTH

-- 
Jeff Carter
Ada has made you lazy and careless. You can write programs in C that
are just as safe by the simple application of super-human diligence.
E. Robert Tisdale
72



--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] On_Key_Press_Handler.

2015-04-04 Thread Pascal
Hello David,

it is somewhat annoying that key handlers return different codes for the same 
key.
Is there a way to get the same value?
As GTK is defining key values in 
https://git.gnome.org/browse/gtk+/tree/gdk/gdkkeysyms.h.

Thanks, Pascal.
http://blady.pagesperso-orange.fr


Le 31 mars 2015 à 23:42, Rabbi David Botton da...@botton.com a écrit :

 Not sure why not working but binding window will work. 
 
 David Botton
 On Sun, Mar 29, 2015 at 10:57 AM Pascal blady-...@users.sf.net wrote:
 Hello David,
 
 It seems that On_Key_Press_Handler does not work with 
 gnoga.gui.View.Console.Console_View_Type.
 Thus my handles are bound to window:
   Gnoga.Application.Singleton.Initialize (IntWindow);
   IntWindow.On_Key_Press_Handler (On_Key_Press_Event'Access);
   IntWindow.On_Key_Up_Handler (On_Key_Press_Event'Access);
   IntWindow.On_Key_Down_Handler (On_Key_Press_Event'Access);
   IntWindow.On_Character_Handler (On_Key_Char_Event'Access);
 
 Is it correct?
 
 Regards, Pascal.
 http://blady.pagesperso-orange.fr
 
 
 Le 23 mars 2015 à 03:07, Rabbi David Botton da...@botton.com a écrit :
 
  If you place the handler on the window, do you find the event is received 
  there even if not at the view?
 
  On Sun, Mar 22, 2015 at 9:32 AM Rabbi David Botton da...@botton.com wrote:
  It seems events are consumed by the browser itself, for example page down 
  is consumed by the browser on a view with a scroll bar.
 
  David Botton
 
 
  On Sat, Feb 28, 2015 at 8:18 PM, Rabbi David Botton da...@botton.com 
  wrote:
  I will give a try tomorrow and get to your other requests by tomorrow. Last 
  week worked hard on hardening the connections. Still have a few back and 
  forths going in with Dmitry but nailed down a number of issues.
 
  David Botton
 
 
  On Saturday, February 28, 2015, Pascal blady-...@users.sf.net wrote:
  Hello David,
 
  It seems that On_Key_Press_Handler works only bind to 
  Gnoga.Gui.Window.Window_Type but not bind to 
  gnoga.gui.View.Console.Console_View_Type.
 
  Can you confirm?
 
  The different key handlers behave strangely regarding the key stroke:
 
  a:
  KEY_DOWN, 65
  KEY_PRESS, 97
  On_Key_Char_Event,a
  KEY_UP, 65
  -- key down and up have upper case code of character a!
 
  A:
  KEY_DOWN, 16
  KEY_DOWN, 65
  KEY_PRESS, 65
  On_Key_Char_Event,A
  KEY_UP, 65
  KEY_UP, 16
  -- ok same code of character a in upper case
 
  tab:
  KEY_DOWN, 9
  KEY_UP, 9
  -- no key press nor character event!
 
  shift:
  KEY_DOWN, 16
  KEY_UP, 16
  -- no key press event!
  -- what is the coding of key down and up?
 
  =:
  KEY_DOWN, 187
  KEY_PRESS, 61
  On_Key_Char_Event,=
  KEY_UP, 187
  -- what is the coding of key down and up?
 
  5:
  KEY_DOWN, 101
  KEY_PRESS, 53
  On_Key_Char_Event,5
  KEY_UP, 101
  -- what is the coding of key down and up?
 
  page-down:
  KEY_DOWN, 34
  KEY_UP, 34
  -- no key press event!
  -- what is the coding of key down and up?
 
  Is it the same on your side?
 
  Thanks, Pascal.
  http://blady.pagesperso-orange.fr
 
 
 
 --
 Dive into the World of Parallel Programming The Go Parallel Website, sponsored
 by Intel and developed in partnership with Slashdot Media, is your hub for all
 things parallel software development, from weekly thought leadership blogs to
 news, videos, case studies, tutorials and more. Take a look and join the
 conversation now. http://goparallel.sourceforge.net/
 ___
 Gnoga-list mailing list
 Gnoga-list@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gnoga-list
 --
 Dive into the World of Parallel Programming The Go Parallel Website, sponsored
 by Intel and developed in partnership with Slashdot Media, is your hub for all
 things parallel software development, from weekly thought leadership blogs to
 news, videos, case studies, tutorials and more. Take a look and join the 
 conversation now. 
 http://goparallel.sourceforge.net/___
 Gnoga-list mailing list
 Gnoga-list@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gnoga-list


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] On_Key_Press_Handler.

2015-03-31 Thread Rabbi David Botton
Not sure why not working but binding window will work.

David Botton
On Sun, Mar 29, 2015 at 10:57 AM Pascal blady-...@users.sf.net wrote:

 Hello David,

 It seems that On_Key_Press_Handler does not work with
 gnoga.gui.View.Console.Console_View_Type.
 Thus my handles are bound to window:
   Gnoga.Application.Singleton.Initialize (IntWindow);
   IntWindow.On_Key_Press_Handler (On_Key_Press_Event'Access);
   IntWindow.On_Key_Up_Handler (On_Key_Press_Event'Access);
   IntWindow.On_Key_Down_Handler (On_Key_Press_Event'Access);
   IntWindow.On_Character_Handler (On_Key_Char_Event'Access);

 Is it correct?

 Regards, Pascal.
 http://blady.pagesperso-orange.fr


 Le 23 mars 2015 à 03:07, Rabbi David Botton da...@botton.com a écrit :

  If you place the handler on the window, do you find the event is
 received there even if not at the view?
 
  On Sun, Mar 22, 2015 at 9:32 AM Rabbi David Botton da...@botton.com
 wrote:
  It seems events are consumed by the browser itself, for example page
 down is consumed by the browser on a view with a scroll bar.
 
  David Botton
 
 
  On Sat, Feb 28, 2015 at 8:18 PM, Rabbi David Botton da...@botton.com
 wrote:
  I will give a try tomorrow and get to your other requests by tomorrow.
 Last week worked hard on hardening the connections. Still have a few back
 and forths going in with Dmitry but nailed down a number of issues.
 
  David Botton
 
 
  On Saturday, February 28, 2015, Pascal blady-...@users.sf.net wrote:
  Hello David,
 
  It seems that On_Key_Press_Handler works only bind to
 Gnoga.Gui.Window.Window_Type but not bind to gnoga.gui.View.Console.
 Console_View_Type.
 
  Can you confirm?
 
  The different key handlers behave strangely regarding the key stroke:
 
  a:
  KEY_DOWN, 65
  KEY_PRESS, 97
  On_Key_Char_Event,a
  KEY_UP, 65
  -- key down and up have upper case code of character a!
 
  A:
  KEY_DOWN, 16
  KEY_DOWN, 65
  KEY_PRESS, 65
  On_Key_Char_Event,A
  KEY_UP, 65
  KEY_UP, 16
  -- ok same code of character a in upper case
 
  tab:
  KEY_DOWN, 9
  KEY_UP, 9
  -- no key press nor character event!
 
  shift:
  KEY_DOWN, 16
  KEY_UP, 16
  -- no key press event!
  -- what is the coding of key down and up?
 
  =:
  KEY_DOWN, 187
  KEY_PRESS, 61
  On_Key_Char_Event,=
  KEY_UP, 187
  -- what is the coding of key down and up?
 
  5:
  KEY_DOWN, 101
  KEY_PRESS, 53
  On_Key_Char_Event,5
  KEY_UP, 101
  -- what is the coding of key down and up?
 
  page-down:
  KEY_DOWN, 34
  KEY_UP, 34
  -- no key press event!
  -- what is the coding of key down and up?
 
  Is it the same on your side?
 
  Thanks, Pascal.
  http://blady.pagesperso-orange.fr
 


 
 --
 Dive into the World of Parallel Programming The Go Parallel Website,
 sponsored
 by Intel and developed in partnership with Slashdot Media, is your hub for
 all
 things parallel software development, from weekly thought leadership blogs
 to
 news, videos, case studies, tutorials and more. Take a look and join the
 conversation now. http://goparallel.sourceforge.net/
 ___
 Gnoga-list mailing list
 Gnoga-list@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gnoga-list

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] On_Key_Press_Handler.

2015-03-22 Thread Rabbi David Botton
If you place the handler on the window, do you find the event is received
there even if not at the view?

On Sun, Mar 22, 2015 at 9:32 AM Rabbi David Botton da...@botton.com wrote:

 It seems events are consumed by the browser itself, for example page down
 is consumed by the browser on a view with a scroll bar.

 David Botton


 On Sat, Feb 28, 2015 at 8:18 PM, Rabbi David Botton da...@botton.com
 wrote:

 I will give a try tomorrow and get to your other requests by tomorrow.
 Last week worked hard on hardening the connections. Still have a few back
 and forths going in with Dmitry but nailed down a number of issues.

 David Botton


 On Saturday, February 28, 2015, Pascal blady-...@users.sf.net wrote:

 Hello David,

 It seems that On_Key_Press_Handler works only bind to
 Gnoga.Gui.Window.Window_Type but not bind to
 gnoga.gui.View.Console.Console_View_Type.

 Can you confirm?

 The different key handlers behave strangely regarding the key stroke:

 a:
 KEY_DOWN, 65
 KEY_PRESS, 97
 On_Key_Char_Event,a
 KEY_UP, 65
 -- key down and up have upper case code of character a!

 A:
 KEY_DOWN, 16
 KEY_DOWN, 65
 KEY_PRESS, 65
 On_Key_Char_Event,A
 KEY_UP, 65
 KEY_UP, 16
 -- ok same code of character a in upper case

 tab:
 KEY_DOWN, 9
 KEY_UP, 9
 -- no key press nor character event!

 shift:
 KEY_DOWN, 16
 KEY_UP, 16
 -- no key press event!
 -- what is the coding of key down and up?

 =:
 KEY_DOWN, 187
 KEY_PRESS, 61
 On_Key_Char_Event,=
 KEY_UP, 187
 -- what is the coding of key down and up?

 5:
 KEY_DOWN, 101
 KEY_PRESS, 53
 On_Key_Char_Event,5
 KEY_UP, 101
 -- what is the coding of key down and up?

 page-down:
 KEY_DOWN, 34
 KEY_UP, 34
 -- no key press event!
 -- what is the coding of key down and up?

 Is it the same on your side?

 Thanks, Pascal.
 http://blady.pagesperso-orange.fr




 --
 Dive into the World of Parallel Programming The Go Parallel Website,
 sponsored
 by Intel and developed in partnership with Slashdot Media, is your hub
 for all
 things parallel software development, from weekly thought leadership
 blogs to
 news, videos, case studies, tutorials and more. Take a look and join the
 conversation now. http://goparallel.sourceforge.net/
 ___
 Gnoga-list mailing list
 Gnoga-list@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gnoga-list



--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


[Gnoga-list] On_Key_Press_Handler.

2015-02-28 Thread Pascal
Hello David,

It seems that On_Key_Press_Handler works only bind to 
Gnoga.Gui.Window.Window_Type but not bind to 
gnoga.gui.View.Console.Console_View_Type.

Can you confirm?

The different key handlers behave strangely regarding the key stroke:

a:
KEY_DOWN, 65
KEY_PRESS, 97
On_Key_Char_Event,a
KEY_UP, 65
-- key down and up have upper case code of character a!

A:
KEY_DOWN, 16
KEY_DOWN, 65
KEY_PRESS, 65
On_Key_Char_Event,A
KEY_UP, 65
KEY_UP, 16
-- ok same code of character a in upper case

tab:
KEY_DOWN, 9
KEY_UP, 9
-- no key press nor character event!

shift:
KEY_DOWN, 16
KEY_UP, 16
-- no key press event!
-- what is the coding of key down and up?

=:
KEY_DOWN, 187
KEY_PRESS, 61
On_Key_Char_Event,=
KEY_UP, 187
-- what is the coding of key down and up?

5:
KEY_DOWN, 101
KEY_PRESS, 53
On_Key_Char_Event,5
KEY_UP, 101
-- what is the coding of key down and up?

page-down:
KEY_DOWN, 34
KEY_UP, 34
-- no key press event!
-- what is the coding of key down and up?

Is it the same on your side?

Thanks, Pascal.
http://blady.pagesperso-orange.fr



--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list