#50 ctrl-pageup not work

closed-fixed
None
5
2007-03-23
2007-03-21
Anonymous
No

Hi!
patch for DOS:

x---------x
--- /tmp/p/dos/pdckbd.c 2007-03-20 12:06:58.000000000 +0000
+++ pdckbd.c 2007-03-21 14:01:08.000000000 +0000
@@ -422,6 +422,10 @@
key = PADPLUS;
else if (scan == 0xe0 && key == 0x2f) /* Slash */
key = PADSLASH;
+/* GYMOD */
+ else if (scan == 0x84 && key == 0xE0) /* ^PgUp */
+ key = CTL_PGUP;
+/* GYMOD */
else if (key == 0x00 || (key == 0xe0 && scan > 53 && scan != 86))
key = (scan & 0x80) ? -1 : key_table[scan];

x---------x

Discussion

  • William McBrine

    William McBrine - 2007-03-21
    • assigned_to: nobody --> wmcbrine
    • status: open --> open-accepted
     
  • William McBrine

    William McBrine - 2007-03-21

    Logged In: YES
    user_id=27933
    Originator: NO

    Thanks. In fact, a number of keycodes are missing. This is only in CVS -- I restructured the keyboard code, in a simpler way, but in doing so I lost some keys. I'll have to revisit the whole thing.

     
  • William McBrine

    William McBrine - 2007-03-23
    • status: open-accepted --> closed-fixed
     
  • William McBrine

    William McBrine - 2007-03-23

    Logged In: YES
    user_id=27933
    Originator: NO

    OK, fixed. The "(scan & 0x80)" was the bogus part -- there are 164 elements in the shortened key_table[], not 128. Dunno what I was thinking.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks