提交 0b974776 编写于 作者: P Peng Lyu

avoid focus steal when show context menu.

上级 91e99652
......@@ -123,7 +123,8 @@ export class InlineDiffMargin extends Disposable {
this._register(dom.addStandardDisposableListener(this._diffActions, 'mousedown', e => {
const { top, height } = dom.getDomNodePagePosition(this._diffActions);
let pad = Math.floor(lineHeight / 3) + lineHeight;
let pad = Math.floor(lineHeight / 3);
e.preventDefault();
this._contextMenuService.showContextMenu({
getAnchor: () => {
return {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册