source keymap loading through LoadSource

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8634 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2004-08-24 23:22:39 +00:00
parent 96a34bfa35
commit 968aa8c895
3 changed files with 281 additions and 2 deletions
+8
View File
@@ -48,9 +48,17 @@ int main(int argc, char **argv)
keymap.RestoreSystemDefault();
return 0;
}
} else {
if (operation == 'o') {
return 0;
} if (operation == 'l') {
entry_ref ref;
get_ref_for_path(argv[i], &ref);
Keymap keymap;
keymap.LoadSource(ref);
keymap.Dump();
return 0;
} else
break;
}