When removing a keymap jump to the factory one.

This commit is contained in:
Arpad Csanyi
2016-06-16 00:32:03 +02:00
parent 20ed40dc17
commit ee709258b3

6
app.js
View File

@@ -118,6 +118,12 @@ $(function() {
}
});
$('.keymap__remove').on('click', function(e) {
// Show the factory keymap after removal of a keymap.
$('.sidebar__level-2--item:first').click();
$('.notification').show();
});
$('.notification').on('click', '.notification__dismiss', function(e) {
$('.notification').hide();
});