提交 72d1a4c0 编写于 作者: P Peng Lyu

textarea in iframe keybinding issue.

上级 74bbf79a
......@@ -104,6 +104,12 @@ function updateCheckoutButton(isCheckedOut: boolean) {
function setTextArea() {
(<HTMLTextAreaElement>document.getElementById('commentTextArea')!).placeholder = 'Leave a comment';
(<HTMLTextAreaElement>document.getElementById('commentTextArea')!).addEventListener('keydown', e => {
console.log(e);
if (e.keyCode === 65 && e.metaKey) {
(<HTMLTextAreaElement>document.getElementById('commentTextArea')!).select();
}
});
(<HTMLButtonElement>document.getElementById('reply-button')!).textContent = 'Comment';
(<HTMLButtonElement>document.getElementById('close-button')!).textContent = 'Close pull request';
}
\ No newline at end of file
......@@ -1711,7 +1711,7 @@ registerCommand(new EditorOrNativeTextInputCommand({
editorHandler: CoreNavigationCommands.SelectAll,
inputHandler: 'selectAll',
id: 'editor.action.selectAll',
precondition: null,
precondition: EditorContextKeys.focus,
kbOpts: {
weight: CORE_WEIGHT,
kbExpr: null,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册