Page 1 of 1

Problem with Virtual Box keys in Brazilian Keyboard

Posted: 14. Jul 2016, 02:21
by alanquartman
Hi,

I am a user of Virtual Box. I have used him with my notebook, with ABNT2 Keyboard and i didn´t have had problems with the brazilian Keyboard.

But in a lot of Keyboards for desktops, there´s a lot of keys that don´t work.

Searching in google i found the old Ticket #599 (virtualbox . org/ticket/599) where i see a attached source code file named keyboard-tables.h with the reference to the Brazilian Keys (see in red line).

See...
#define MAIN_LEN 50
static const unsigned main_key_scan[MAIN_LEN] =
{
/* ` 1 2 3 4 5 6 7 8 9 0 - = */
0x29,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0x0C,0x0D,
/* q w e r t y u i o p [ ] */
0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1A,0x1B,
/* a s d f g h j k l ; ' \ */
0x1E,0x1F,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x2B,
/* z x c v b n m , . / */
0x2C,0x2D,0x2E,0x2F,0x30,0x31,0x32,0x33,0x34,0x35,
/* 102nd key Brazilian key Yen */
0x56, 0x73, 0x7d
};



Looking in the newest release of Virtual Box, i downloaded the source code and tried to find the same references, that are located in the Ps2KbdCtrller.c source file. For my surprise, these new structure of virtual box source code don´t have reference to the Brazilian Keys, and they don´t work with a lot of Brazilian Keyboards (i tried 3 different with the Brazilian ABNT2 pattern).

Here are the Keys that didn´t work in a capture test that i did:
0x56 - ( \ and | ) (down/up respectively)
0x73 - ( / and ? ) (down/up respectively)
0x7d - ( . )

Keyboard Model = LENOVO KU-0225

How can i send a request for Virtual Box contributors make these inclusions?

Is this forum the channel?

Re: Problem with Virtual Box keys in Brazilian Keyboard

Posted: 14. Jul 2016, 02:48
by Perryg
Probably better to report this at bugtracker

Re: Problem with Virtual Box keys in Brazilian Keyboard

Posted: 14. Jul 2016, 15:46
by alanquartman
The problem is resolved.

It was just the keyboard map of reflection X client, that was using de US map. After change to C:\ProgramData\Microsoft\Windows\Templates\Attachmate\Reflection\X\Brazil.kmp it worked fine with the keyboards.

It was nothing about code defects.

Thanks by attention.