Give the MobilePro 800 and MobilePro 880 correct keymaps: fix the
positioning of the cursor keys to match the keycaps, and make the cmdmap work correctly.
This commit is contained in:
parent
ad2144406e
commit
89349d303e
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: hpckbdkeymap.h,v 1.26 2004/03/18 01:11:58 uwe Exp $ */
|
||||
/* $NetBSD: hpckbdkeymap.h,v 1.27 2004/04/06 15:48:17 tv Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999-2002 The NetBSD Foundation, Inc.
|
||||
|
@ -388,6 +388,45 @@ static u_int8_t mobilepro780_keytrans[] = {
|
|||
/*58*/ IGN, IGN, IGN, 42, 62, 61, 60, 59,
|
||||
};
|
||||
|
||||
/* NEC MobilePro 8x0 */
|
||||
static u_int8_t mobilepro8x0_keytrans[] = {
|
||||
/*00 space ] \ / left right enter l */
|
||||
/*08 - [ ' ; up down . o */
|
||||
/*10 - - - Windows v c x z */
|
||||
/*18 - = \- ` f d s a */
|
||||
/*20 8 7 6 5 r e w q */
|
||||
/*28 , m n b - - 0 9 */
|
||||
/*30 k j h g 4 3 2 1 */
|
||||
/*38 i u y t - caps del esc */
|
||||
/*40 alt_R - - - BS p TAB Fn */
|
||||
/*48 - alt_L - - pgdn pgup f10 f9 */
|
||||
/*50 - - ctrl - f8 f7 f6 f5 */
|
||||
/*58 - - - shift f4 f3 f2 f1 */
|
||||
/*----------------------------------------------------------------------*/
|
||||
/*00*/ 57, 27, 43, 53, 203, 205, 28, 38,
|
||||
/*08*/ IGN, 26, 40, 39, 200, 208, 52, 24,
|
||||
/*10*/ IGN, IGN, IGN, 221, 47, 46, 45, 44,
|
||||
/*18*/ IGN, 13, 12, 41, 33, 32, 31, 30,
|
||||
/*20*/ 9, 8, 7, 6, 19, 18, 17, 16,
|
||||
/*28*/ 51, 50, 49, 48, IGN, IGN, 11, 10,
|
||||
/*30*/ 37, 36, 35, 34, 5, 4, 3, 2,
|
||||
/*38*/ 23, 22, 21, 20, IGN, 58, 14, 1,
|
||||
/*40*/ 184, IGN, IGN, IGN, 14, 25, 15, 219,
|
||||
/*48*/ IGN, 56, IGN, IGN, 81, 73, 68, 67,
|
||||
/*50*/ IGN, IGN, 29, IGN, 66, 65, 64, 63,
|
||||
/*58*/ IGN, IGN, IGN, 42, 62, 61, 60, 59,
|
||||
};
|
||||
|
||||
static const keysym_t mobilepro8x0_cmdmap[] = {
|
||||
/* pos command normal shifted */
|
||||
KC(219), KS_Cmd, KS_Meta_L, KS_Multi_key,
|
||||
KC(73), KS_Cmd_BrightnessUp, KS_KP_Prior, KS_KP_9,
|
||||
KC(81), KS_Cmd_BrightnessDown, KS_KP_Next, KS_KP_3,
|
||||
KC(51), KS_Cmd_ContrastDown, KS_comma, KS_less,
|
||||
KC(52), KS_Cmd_ContrastUp, KS_period, KS_greater,
|
||||
KC(57), KS_Cmd_BacklightToggle,KS_space,
|
||||
};
|
||||
|
||||
/* FUJITSU INTERTOP CX300 */
|
||||
static u_int8_t intertop_keytrans[] = {
|
||||
/*00 space a2 1 tab enter caps left zenkaku */
|
||||
|
@ -815,14 +854,14 @@ const struct hpckbd_keymap_table {
|
|||
NULLCMDMAP,
|
||||
KB_US },
|
||||
{ &platid_mask_MACH_NEC_MCR_700A,
|
||||
mobilepro_keytrans,
|
||||
mobilepro8x0_keytrans,
|
||||
NULL,
|
||||
NULLCMDMAP,
|
||||
CMDMAP(mobilepro8x0_cmdmap),
|
||||
KB_US },
|
||||
{ &platid_mask_MACH_NEC_MCR_730A,
|
||||
mobilepro_keytrans,
|
||||
mobilepro8x0_keytrans,
|
||||
NULL,
|
||||
NULLCMDMAP,
|
||||
CMDMAP(mobilepro8x0_cmdmap),
|
||||
KB_US },
|
||||
{ &platid_mask_MACH_NEC_MCR_MPRO700,
|
||||
mobilepro_keytrans,
|
||||
|
|
Loading…
Reference in New Issue