Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
1477f20c
V
vscode
项目概览
xxadev
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1477f20c
编写于
1月 25, 2016
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
more focus indication tweaks
上级
11ab2066
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
22 addition
and
10 deletion
+22
-10
src/vs/workbench/browser/parts/activitybar/media/activityaction.css
...kbench/browser/parts/activitybar/media/activityaction.css
+5
-0
src/vs/workbench/browser/parts/editor/binaryDiffEditor.ts
src/vs/workbench/browser/parts/editor/binaryDiffEditor.ts
+0
-2
src/vs/workbench/browser/parts/editor/binaryEditor.ts
src/vs/workbench/browser/parts/editor/binaryEditor.ts
+0
-1
src/vs/workbench/electron-browser/media/shell.css
src/vs/workbench/electron-browser/media/shell.css
+10
-4
src/vs/workbench/parts/debug/browser/debugHover.ts
src/vs/workbench/parts/debug/browser/debugHover.ts
+7
-2
src/vs/workbench/parts/debug/browser/media/debugHover.css
src/vs/workbench/parts/debug/browser/media/debugHover.css
+0
-1
未找到文件。
src/vs/workbench/browser/parts/activitybar/media/activityaction.css
浏览文件 @
1477f20c
...
...
@@ -50,6 +50,11 @@
border-left-color
:
#DF740C
;
}
.monaco-workbench
>
.activitybar
>
.content
.monaco-action-bar
.action-item
.action-label
:active:before
,
.monaco-workbench
>
.activitybar
>
.content
.monaco-action-bar
.action-item
.action-label
:hover:before
{
border
:
none
;
}
.monaco-workbench
>
.activitybar.left
>
.content
.monaco-action-bar
.action-item
.action-label
:focus:before
{
left
:
1px
;
}
...
...
src/vs/workbench/browser/parts/editor/binaryDiffEditor.ts
浏览文件 @
1477f20c
...
...
@@ -56,7 +56,6 @@ export class BinaryResourceDiffEditor extends BaseEditor implements IVerticalSas
let
leftBinaryContainerElement
=
document
.
createElement
(
'
div
'
);
leftBinaryContainerElement
.
className
=
'
binary-container
'
;
this
.
leftBinaryContainer
=
$
(
leftBinaryContainerElement
);
this
.
leftBinaryContainer
.
tabindex
(
0
);
// enable focus support
// Left Custom Scrollbars
this
.
leftScrollbar
=
new
ScrollableElement
(
leftBinaryContainerElement
,
{
horizontal
:
'
hidden
'
,
vertical
:
'
hidden
'
});
...
...
@@ -73,7 +72,6 @@ export class BinaryResourceDiffEditor extends BaseEditor implements IVerticalSas
let
rightBinaryContainerElement
=
document
.
createElement
(
'
div
'
);
rightBinaryContainerElement
.
className
=
'
binary-container
'
;
this
.
rightBinaryContainer
=
$
(
rightBinaryContainerElement
);
this
.
rightBinaryContainer
.
tabindex
(
0
);
// enable focus support
// Right Custom Scrollbars
this
.
rightScrollbar
=
new
ScrollableElement
(
rightBinaryContainerElement
,
{
horizontal
:
'
hidden
'
,
vertical
:
'
hidden
'
});
...
...
src/vs/workbench/browser/parts/editor/binaryEditor.ts
浏览文件 @
1477f20c
...
...
@@ -40,7 +40,6 @@ export abstract class BaseBinaryResourceEditor extends BaseEditor {
let
binaryContainerElement
=
document
.
createElement
(
'
div
'
);
binaryContainerElement
.
className
=
'
binary-container monaco-editor-background
'
;
// Inherit the background color from selected theme'
this
.
binaryContainer
=
$
(
binaryContainerElement
);
this
.
binaryContainer
.
tabindex
(
0
);
// enable focus support
parent
.
getHTMLElement
().
appendChild
(
this
.
binaryContainer
.
getHTMLElement
());
}
...
...
src/vs/workbench/electron-browser/media/shell.css
浏览文件 @
1477f20c
...
...
@@ -104,12 +104,18 @@
outline
:
0
!important
;
/* tree indicates focus not via outline but through the focussed item */
}
.monaco-shell
.activitybar
[
tabindex
=
"0"
]
:focus
{
outline
:
0
;
/* activity bar indicates focus custom */
.monaco-shell
[
tabindex
=
"0"
]
:active
,
.monaco-shell
select
:active
,
.monaco-shell
input
[
type
=
"button"
]
:active
,
.monaco-shell
input
[
type
=
"submit"
]
:active
,
.monaco-shell
input
[
type
=
"checkbox"
]
:active
,
.monaco-shell
.monaco-tree.focused
:active
.monaco-tree-rows
:empty
,
.monaco-shell
.monaco-tree.focused.no-item-focus
:active
.monaco-tree-rows
{
outline
:
0
!important
;
/* fixes some flashing outlines from showing up when clicking */
}
.monaco-shell
.
part.editor
.binary-container
:focus
{
outline
:
0
;
/*
binary containe
r indicates focus custom */
.monaco-shell
.
activitybar
[
tabindex
=
"0"
]
:focus
{
outline
:
0
;
/*
activity ba
r indicates focus custom */
}
/* END Keyboard Focus Indication Styles */
...
...
src/vs/workbench/parts/debug/browser/debugHover.ts
浏览文件 @
1477f20c
...
...
@@ -17,7 +17,7 @@ import viewer = require('vs/workbench/parts/debug/browser/debugViewer');
const
$
=
dom
.
emmet
;
const
debugTreeOptions
=
{
indentPixels
:
6
,
twistiePixels
:
1
2
twistiePixels
:
1
5
};
const
MAX_ELEMENTS_SHOWN
=
18
;
...
...
@@ -42,7 +42,7 @@ export class DebugHoverWidget implements editorbrowser.IContentWidget {
this
.
tree
=
new
Tree
(
this
.
treeContainer
,
{
dataSource
:
new
viewer
.
VariablesDataSource
(
this
.
debugService
),
renderer
:
this
.
instantiationService
.
createInstance
(
VariablesHoverRenderer
),
controller
:
new
DebugHoverController
()
controller
:
new
DebugHoverController
(
editor
)
},
debugTreeOptions
);
this
.
tree
.
addListener2
(
'
item:expanded
'
,
()
=>
{
this
.
layoutTree
();
...
...
@@ -194,11 +194,16 @@ export class DebugHoverWidget implements editorbrowser.IContentWidget {
class
DebugHoverController
extends
DefaultController
{
constructor
(
private
editor
:
editorbrowser
.
ICodeEditor
)
{
super
();
}
/* protected */
public
onLeftClick
(
tree
:
ITree
,
element
:
any
,
eventish
:
ICancelableEvent
,
origin
:
string
=
'
mouse
'
):
boolean
{
if
(
element
.
reference
>
0
)
{
super
.
onLeftClick
(
tree
,
element
,
eventish
,
origin
);
tree
.
clearFocus
();
tree
.
deselect
(
element
);
this
.
editor
.
focus
();
}
return
true
;
...
...
src/vs/workbench/parts/debug/browser/media/debugHover.css
浏览文件 @
1477f20c
...
...
@@ -4,7 +4,6 @@
*--------------------------------------------------------------------------------------------*/
.monaco-editor
.debug-hover-widget
{
padding
:
0
3px
0
3px
;
border
:
1px
solid
#CCC
;
position
:
absolute
;
margin-top
:
-1px
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录