{"id":85725,"date":"2020-05-14T09:44:37","date_gmt":"2020-05-14T01:44:37","guid":{"rendered":"http:\/\/4563.org\/?p=85725"},"modified":"2020-05-14T09:44:37","modified_gmt":"2020-05-14T01:44:37","slug":"electron-%e4%b8%ad-nls-localize-key-miundo-comment-denotes-a-mnemonic-%e8%bf%99%e7%a7%8d%e6%98%af%e4%bb%80%e4%b9%88%e7%94%a8%e5%a4%84%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=85725","title":{"rendered":"electron \u4e2d nls.localize({ key: &#8216;miUndo&#8217;, comment: [&#8216;&amp;&amp; denotes a mnemonic&#8217;] \u8fd9\u79cd&#8221;&amp;&amp;&#8221;\u662f\u4ec0\u4e48\u7528\u5904\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  electron \u4e2d nls.localize({ key: &#8216;miUndo&#8217;, comment: [&#8216;&amp;&amp; denotes a mnemonic&#8217;] \u8fd9\u79cd&#8221;&amp;&amp;&#8221;\u662f\u4ec0\u4e48\u7528\u5904\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : vevlins <\/span>  <span><i><\/i> 3<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>https:\/\/github.com\/ysmhsla\/myeditor\/blob\/8076a19fdcab7e1fc1707952d652f0bb6c6db331\/src\/vs\/code\/electron-main\/menus.ts<\/p>\n<pre><code>  if (isMacintosh) {    undo = this.createDevToolsAwareMenuItem(nls.localize({ key: 'miUndo', comment: ['&amp;&amp; denotes a mnemonic'] }, \"&amp;&amp;Undo\"), 'undo', devTools =&gt; devTools.undo());    redo = this.createDevToolsAwareMenuItem(nls.localize({ key: 'miRedo', comment: ['&amp;&amp; denotes a mnemonic'] }, \"&amp;&amp;Redo\"), 'redo', devTools =&gt; devTools.redo());    cut = this.createRoleMenuItem(nls.localize({ key: 'miCut', comment: ['&amp;&amp; denotes a mnemonic'] }, \"Cu&amp;&amp;t\"), 'editor.action.clipboardCutAction', 'cut');    copy = this.createRoleMenuItem(nls.localize({ key: 'miCopy', comment: ['&amp;&amp; denotes a mnemonic'] }, \"&amp;&amp;Copy\"), 'editor.action.clipboardCopyAction', 'copy');    paste = this.createRoleMenuItem(nls.localize({ key: 'miPaste', comment: ['&amp;&amp; denotes a mnemonic'] }, \"&amp;&amp;Paste\"), 'editor.action.clipboardPasteAction', 'paste');   } else {    undo = this.createMenuItem(nls.localize({ key: 'miUndo', comment: ['&amp;&amp; denotes a mnemonic'] }, \"&amp;&amp;Undo\"), 'undo');    redo = this.createMenuItem(nls.localize({ key: 'miRedo', comment: ['&amp;&amp; denotes a mnemonic'] }, \"&amp;&amp;Redo\"), 'redo');    cut = this.createMenuItem(nls.localize({ key: 'miCut', comment: ['&amp;&amp; denotes a mnemonic'] }, \"Cu&amp;&amp;t\"), 'editor.action.clipboardCutAction');    copy = this.createMenuItem(nls.localize({ key: 'miCopy', comment: ['&amp;&amp; denotes a mnemonic'] }, \"&amp;&amp;Copy\"), 'editor.action.clipboardCopyAction');    paste = this.createMenuItem(nls.localize({ key: 'miPaste', comment: ['&amp;&amp; denotes a mnemonic'] }, \"&amp;&amp;Paste\"), 'editor.action.clipboardPasteAction');   } <\/code><\/pre>\n<p>\u6bd4\u5982\u8fd9\u91cc\u5f88\u591a &amp;&amp;\uff0c\u5230\u5e95\u5565\u610f\u601d\uff1f<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>3<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"1512972\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : geelaw <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6ce8\u91ca\u91cc\u63d0\u793a\u4e86\u662f\u52a9\u8bb0\u6309\u952e\uff0c\u5373\u952e\u76d8\u5feb\u6377\u65b9\u5f0f\u3002<\/p>\n<p>\u5f88\u591a\u83dc\u5355\u9879\u3001\u547d\u4ee4\u6309\u94ae\u7684\u67d0\u4e2a\u5b57\u6bcd\u4e0b\u4f1a\u6709\u4e00\u4e2a\u4e0b\u5212\u7ebf\uff0c\u8fd9\u8868\u793a\u4f7f\u7528 \u90a3\u4e2a\u5b57\u6bcd \u7684\u6309\u952e\u6216\u8005 Alt+\u90a3\u4e2a\u5b57\u6bcd \u53ef\u4ee5\u6fc0\u6d3b\u90a3\u4e2a\u83dc\u5355\u9879\u3001\u547d\u4ee4\u6309\u94ae\u3002<\/p>\n<p>\u4e3e\u4e2a\u4f8b\u5b50\uff0c\u5728 Windows \u4e0a\u6253\u5f00\u8bb0\u4e8b\u672c\uff0c\u7136\u540e\u6309 Alt+O \u518d\u6309 F \u53ef\u4ee5\u6253\u5f00\u5b57\u4f53\u5bf9\u8bdd\u6846\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1512973\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : vevlins <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @geelaw \u8fd8\u662f\u4e0d\u592a\u660e\u767d\uff0c &amp;&amp;Paste \u5728\u5c4f\u5e55\u4e0a\u5b9e\u9645\u663e\u793a Paste\uff0c\u4e5f\u6ca1\u6709\u663e\u793a\u5feb\u6377\u952e\u63d0\u793a\uff0c\u50cf Cu&amp;&amp;t \u770b\u8d77\u6765\u5c31\u66f4\u5947\u602a\u4e86\uff0c\u8fd9\u4e2a\u5feb\u6377\u952e\u5982\u4f55\u89e6\u53d1\u5462\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1512974\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : geelaw <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @vevlins \u56e0\u4e3a\u6700\u8fd1\u7684 Windows \uff08\u5927\u6982\u662f Windows Vista \u6216\u8005 7 \u5f00\u59cb\u7684\uff09\u9ed8\u8ba4\u4e0d\u663e\u793a\u63d0\u793a\u3002\u8fd9\u4e2a\u6280\u80fd\u4e5f\u4e0d\u662f\u90a3\u4e48\u4e45\u8fdc\u7684\u6545\u4e8b\uff0c\u611f\u89c9\u6211\u5728\u56de\u7b54\u7535\u8111\u64cd\u4f5c 101 \u3002<\/p>\n<p>Cut \u7684\u89e6\u53d1\u65b9\u5f0f\u81ea\u7136\u662f\u6309 T\uff0c\u4f8b\u5982\u5728 VSCode \u91cc\u9762\uff0c\u6253\u5f00 Edit \u83dc\u5355\u540e\u6309 T\uff0c\u4f1a\u5728 Cut \u548c Toggle Line Comment \u4e4b\u95f4\u53cd\u590d\u5207\u6362\u9ad8\u4eae\u9879\uff0c\u5728\u5207\u6362\u5230 Cut \u540e\u6309 Enter \u5c31\u53ef\u4ee5\u89e6\u53d1\uff0c\u8fd9\u662f\u56e0\u4e3a Toggle Line Comment \u7684\u5feb\u6377\u65b9\u5f0f\u4e5f\u662f T \uff1b\u5982\u679c\u662f Copy\uff0c\u56e0\u4e3a Edit \u91cc\u9762\u53ea\u6709 Copy \u7684\u5feb\u6377\u65b9\u5f0f\u662f C\uff0c\u6240\u4ee5\u6309 C \u4f1a\u76f4\u63a5\u89e6\u53d1\u3002<\/p>\n<p>\u5982\u679c\u4f60\u4f7f\u7528 Alt+E \u6253\u5f00 Edit \u83dc\u5355\uff0c\u5219\u65e0\u8bba\u4ec0\u4e48\u8bbe\u7f6e\u90fd\u4f1a\u663e\u793a\u6bcf\u4e2a\u83dc\u5355\u9879\u7684\u5feb\u6377\u65b9\u5f0f\uff0c\u8fd9\u91cc\u7684\u903b\u8f91\u662f\u7528\u6237\u660e\u663e\u8868\u8fbe\u4e86\u4f7f\u7528\u952e\u76d8\u5bfc\u822a\u7684\u610f\u613f\u3002<\/p>\n<p>\u5982\u679c\u4f60\u60f3\u6c38\u8fdc\u663e\u793a\u5feb\u6377\u65b9\u5f0f\u7684\u4e0b\u5212\u7ebf\uff0c\u53ef\u4ee5\u5728 Windows \u7684 Settings | Ease of Access | Keyboard \u91cc\u6253\u5f00 Underline access keys when available \u3002<\/p>\n<p>\u540c\u7406\uff0c\u6807\u51c6\u7684 Yes\/No \u5bf9\u8bdd\u6846\u53ef\u4ee5\u6309 Y \u6216\u8005 N \u8fdb\u884c\u56de\u7b54\uff0c\u65e0\u8bba\u662f\u5426\u6709\u4e0b\u5212\u7ebf\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>electron \u4e2d nls.lo&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/85725"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=85725"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/85725\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=85725"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=85725"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=85725"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}