提交 8c8de9fe 编写于 作者: R Ryan Adolf

Make double-clicking icon close window

上级 dc5f62bb
......@@ -232,7 +232,13 @@ export class TitlebarPart extends Part implements ITitleService {
this.titleContainer = $(parent);
if (!isMacintosh) {
$(this.titleContainer).img({ class: 'window-appicon', src: path.join(this.environmentService.appRoot, 'resources/linux/code.png') });
$(this.titleContainer).img({
class: 'window-appicon',
src: path.join(this.environmentService.appRoot, 'resources/linux/code.png')
}).on(DOM.EventType.DBLCLICK, (e) => {
DOM.EventHelper.stop(e, true);
this.windowService.closeWindow().then(null, errors.onUnexpectedError);
});
}
// Title
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册