diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-06-13 20:36:25 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-06-13 20:36:25 +0000 |
commit | dd925ed3fcebb57ad62d9fcf27fbcd9836438409 (patch) | |
tree | 375e23936e52d60671c87994609fcf95227df681 /sys | |
parent | 296d39fd27fb525b540ab674c92dd061b535211d (diff) |
add portuguese kbd map; from pmsac <pmsac@netcabo.pt>
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pckbc/wskbdmap_mfii.c | 28 | ||||
-rw-r--r-- | sys/dev/wscons/wsksymdef.h | 6 |
2 files changed, 31 insertions, 3 deletions
diff --git a/sys/dev/pckbc/wskbdmap_mfii.c b/sys/dev/pckbc/wskbdmap_mfii.c index 73171649225..e5c11bd0ab2 100644 --- a/sys/dev/pckbc/wskbdmap_mfii.c +++ b/sys/dev/pckbc/wskbdmap_mfii.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wskbdmap_mfii.c,v 1.10 2001/06/10 17:01:09 mickey Exp $ */ +/* $OpenBSD: wskbdmap_mfii.c,v 1.11 2001/06/13 20:36:24 mickey Exp $ */ /* $NetBSD: wskbdmap_mfii.c,v 1.15 2000/05/19 16:40:04 drochner Exp $ */ /*- @@ -594,6 +594,31 @@ static const keysym_t pckbd_keydesc_sf[] = { KC(40), KS_agrave, KS_adiaeresis, KS_braceleft }; +static const keysym_t pckbd_keydesc_pt[] = { +/* pos normal shifted altgr shift-altgr */ + KC(3), KS_2, KS_quotedbl, KS_at, + KC(4), KS_3, KS_numbersign, KS_sterling, + KC(5), KS_4, KS_dollar, + KC(7), KS_6, KS_ampersand, + KC(8), KS_7, KS_slash, KS_braceleft, + KC(9), KS_8, KS_parenleft, KS_bracketleft, + KC(10), KS_9, KS_parenright, KS_bracketright, + KC(11), KS_0, KS_equal, KS_braceright, + KC(12), KS_apostrophe, KS_question, + KC(13), KS_less, KS_greater, + KC(26), KS_plus, KS_asterisk, + KC(27), KS_dead_acute, KS_dead_grave, + KC(39), KS_ccedilla, KS_Ccedilla, + KC(40), KS_masculine, KS_ordfeminine, + KC(41), KS_backslash, KS_bar, + KC(43), KS_dead_tilde, KS_dead_circumflex, + KC(51), KS_comma, KS_semicolon, + KC(52), KS_period, KS_colon, + KC(53), KS_minus, KS_underscore, + KC(86), KS_less, KS_greater, + KC(184), KS_Mode_switch, KS_Multi_key, +}; + #define KBD_MAP(name, base, map) \ { name, base, sizeof(map)/sizeof(keysym_t), map } @@ -629,6 +654,7 @@ const struct wscons_keydesc pckbd_keydesctab[] = { KBD_MAP(KB_SG | KB_NODEAD, KB_SG, pckbd_keydesc_sg_nodead), KBD_MAP(KB_SF, KB_SG, pckbd_keydesc_sf), KBD_MAP(KB_SF | KB_NODEAD, KB_SF, pckbd_keydesc_sg_nodead), + KBD_MAP(KB_PT, KB_US, pckbd_keydesc_pt), {0, 0, 0, 0} }; diff --git a/sys/dev/wscons/wsksymdef.h b/sys/dev/wscons/wsksymdef.h index aa801402fee..59ea28faada 100644 --- a/sys/dev/wscons/wsksymdef.h +++ b/sys/dev/wscons/wsksymdef.h @@ -1,4 +1,4 @@ -/* $OpenBSD: wsksymdef.h,v 1.12 2001/06/08 17:24:41 mickey Exp $ */ +/* $OpenBSD: wsksymdef.h,v 1.13 2001/06/13 20:36:24 mickey Exp $ */ /* $NetBSD: wsksymdef.h,v 1.34.4.1 2000/07/07 09:49:54 hannken Exp $ */ /*- @@ -571,6 +571,7 @@ #define KB_RU 0x0e00 #define KB_SG 0x0f00 #define KB_SF 0x1000 +#define KB_PT 0x1100 #define KB_NODEAD 0x0001 #define KB_DECLK 0x0002 /* DEC LKnnn layout */ @@ -597,7 +598,8 @@ { KB_BE, "be" }, \ { KB_RU, "ru" }, \ { KB_SG, "sg" }, \ - { KB_SG, "sf" } + { KB_SF, "sf" }, \ + { KB_PT, "pt" } #define KB_VARTAB \ { KB_NODEAD, "nodead" }, \ |