clean up
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27588 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -19,7 +19,7 @@ print_key(char *chars, int32 offset)
|
|||||||
{
|
{
|
||||||
int size = chars[offset++];
|
int size = chars[offset++];
|
||||||
|
|
||||||
switch(size) {
|
switch (size) {
|
||||||
case 0:
|
case 0:
|
||||||
// Not mapped
|
// Not mapped
|
||||||
printf("N/A");
|
printf("N/A");
|
||||||
@@ -52,17 +52,17 @@ Keymap::DumpKeymap()
|
|||||||
// Print a chart of the normal, shift, option, and option+shift
|
// Print a chart of the normal, shift, option, and option+shift
|
||||||
// keys.
|
// keys.
|
||||||
printf("Key #\tNormal\tShift\tCaps\tC+S\tOption\tO+S\tO+C\tO+C+S\tControl\n");
|
printf("Key #\tNormal\tShift\tCaps\tC+S\tOption\tO+S\tO+C\tO+C+S\tControl\n");
|
||||||
for (int idx = 0; idx < 128; idx++) {
|
for (int i = 0; i < 128; i++) {
|
||||||
printf(" 0x%x\t", idx );
|
printf(" 0x%x\t", i);
|
||||||
print_key(fChars, fKeys.normal_map[idx]);
|
print_key(fChars, fKeys.normal_map[i]);
|
||||||
print_key(fChars, fKeys.shift_map[idx]);
|
print_key(fChars, fKeys.shift_map[i]);
|
||||||
print_key(fChars, fKeys.caps_map[idx]);
|
print_key(fChars, fKeys.caps_map[i]);
|
||||||
print_key(fChars, fKeys.caps_shift_map[idx]);
|
print_key(fChars, fKeys.caps_shift_map[i]);
|
||||||
print_key(fChars, fKeys.option_map[idx]);
|
print_key(fChars, fKeys.option_map[i]);
|
||||||
print_key(fChars, fKeys.option_shift_map[idx]);
|
print_key(fChars, fKeys.option_shift_map[i]);
|
||||||
print_key(fChars, fKeys.option_caps_map[idx]);
|
print_key(fChars, fKeys.option_caps_map[i]);
|
||||||
print_key(fChars, fKeys.option_caps_shift_map[idx]);
|
print_key(fChars, fKeys.option_caps_shift_map[i]);
|
||||||
print_key(fChars, fKeys.control_map[idx]);
|
print_key(fChars, fKeys.control_map[i]);
|
||||||
printf("\n");
|
printf("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -357,7 +357,6 @@ KeymapWindow::RevertKeymap()
|
|||||||
{
|
{
|
||||||
//saves previous map to the Key_map file
|
//saves previous map to the Key_map file
|
||||||
|
|
||||||
printf("REVERT\n");
|
|
||||||
BPath path;
|
BPath path;
|
||||||
if (find_directory(B_USER_SETTINGS_DIRECTORY, &path)!=B_OK)
|
if (find_directory(B_USER_SETTINGS_DIRECTORY, &path)!=B_OK)
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user