Keymap: Add Defaults button to revert keymap

Fixes #9980

Since hrev44455 we save your modifier keys settings when you switch
keymaps so you could get your modifiers keys messed up and unable to
get back to normal. This Defaults button allows you to override all
that and go back to the default US-International keymap with default
modifiers so you can start with a fresh slate and set things up the
way you want.

Also moved Revert button to the left side next to the Defaults button.
We do this on other preflets, the right side is reserved for an Apply
or OK button, and, if the preflet doesn't have one, is left empty.
This commit is contained in:
John Scipione
2013-09-26 19:37:06 -04:00
parent 5243ff9403
commit 7889cac6cf
4 changed files with 51 additions and 5 deletions
+2
View File
@@ -51,6 +51,7 @@ protected:
void _SwitchShortcutKeys();
void _UseKeymap();
void _DefaultKeymap();
void _RevertKeymap();
BMenuField* _CreateDeadKeyMenuField();
@@ -74,6 +75,7 @@ protected:
private:
BListView* fSystemListView;
BListView* fUserListView;
BButton* fDefaultsButton;
BButton* fRevertButton;
BMenu* fLayoutMenu;
BMenu* fFontMenu;