mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-11 15:24:05 +09:00
edit.js: ^Q to quit
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//const menubarItems = ["File","Edit","View"];
|
//const menubarItems = ["File","Edit","View"];
|
||||||
const menubarItems = [`^S${String.fromCharCode(221)}save`,`^X${String.fromCharCode(221)}exit`];
|
const menubarItems = [`^S${String.fromCharCode(221)}save`,`^Q${String.fromCharCode(221)}quit`];
|
||||||
const menubarFile = ["New","Open","Save","Save as","Exit"];
|
const menubarFile = ["New","Open","Save","Save as","Exit"];
|
||||||
const menubarEdit = ["Undo","Redo","Cut","Copy","Paste","Select All","Deselect"];
|
const menubarEdit = ["Undo","Redo","Cut","Copy","Paste","Select All","Deselect"];
|
||||||
const menubarView = ["Go To Line"];
|
const menubarView = ["Go To Line"];
|
||||||
@@ -426,7 +426,7 @@ while (!exit) {
|
|||||||
|
|
||||||
if (bulletinShown) dismissBulletin();
|
if (bulletinShown) dismissBulletin();
|
||||||
|
|
||||||
if (key == 24) // Ctrl-X
|
if (key == 17) // Ctrl-Q
|
||||||
exit = true;
|
exit = true;
|
||||||
else if (key == 19 && !bulletinShown) {
|
else if (key == 19 && !bulletinShown) {
|
||||||
writeout();
|
writeout();
|
||||||
|
|||||||
Reference in New Issue
Block a user