Skip to content

Commit 7a9ec33

Browse files
committed
using common.quit everywhere
1 parent cdb1315 commit 7a9ec33

File tree

5 files changed

+3
-11
lines changed

5 files changed

+3
-11
lines changed

config/key/mc.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@
1818
"selectAll": [
1919
"enter"
2020
],
21-
"quit": [
22-
"escape",
23-
"q"
24-
],
2521
"add": [
2622
"a"
2723
],

config/key/vi.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@
1818
"selectAll": [
1919
"enter"
2020
],
21-
"quit": [
22-
"escape",
23-
"q"
24-
],
2521
"add": [
2622
"C-a"
2723
],

controller/branch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ var branch = {
6969
});
7070
});
7171

72-
view.list.key(config.keys.main.quit, function () {
72+
view.list.key(config.keys.common.quit, function () {
7373
branch.hide();
7474
});
7575
}

controller/editor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ var editor = {
3131
editor.hide(true);
3232
});
3333

34-
view.textarea.key(config.keys.main.quit, function () {
34+
view.textarea.key(config.keys.common.quit, function () {
3535
editor.hide();
3636
});
3737
}

controller/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ _.each(view.list, function (elem) {
189189
main.selectAll();
190190
});
191191

192-
elem.key(config.keys.main.quit, function () {
192+
elem.key(config.keys.common.quit, function () {
193193
return process.exit(0);
194194
});
195195

0 commit comments

Comments
 (0)