Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
64005c3d
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,发现更多精彩内容 >>
提交
64005c3d
编写于
2月 08, 2016
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
more focus behavior polish
上级
699f0946
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
24 addition
and
9 deletion
+24
-9
src/vs/workbench/browser/viewlet.ts
src/vs/workbench/browser/viewlet.ts
+4
-2
src/vs/workbench/electron-browser/media/shell.css
src/vs/workbench/electron-browser/media/shell.css
+1
-0
src/vs/workbench/parts/files/browser/fileActions.ts
src/vs/workbench/parts/files/browser/fileActions.ts
+2
-0
src/vs/workbench/parts/git/browser/views/changes/changesView.ts
.../workbench/parts/git/browser/views/changes/changesView.ts
+0
-1
src/vs/workbench/parts/output/browser/outputActions.ts
src/vs/workbench/parts/output/browser/outputActions.ts
+6
-1
src/vs/workbench/parts/search/browser/searchViewlet.ts
src/vs/workbench/parts/search/browser/searchViewlet.ts
+11
-5
未找到文件。
src/vs/workbench/browser/viewlet.ts
浏览文件 @
64005c3d
...
...
@@ -261,8 +261,10 @@ export class CollapseAction extends Action {
}
viewer
.
collapseAll
();
viewer
.
clearSelection
();
// Chance is high that element is now hidden, so unselect all
viewer
.
DOMFocus
();
// Pass keyboard focus back from action link to tree
viewer
.
clearSelection
();
viewer
.
clearFocus
();
viewer
.
DOMFocus
();
viewer
.
focusFirst
();
return
TPromise
.
as
(
null
);
});
...
...
src/vs/workbench/electron-browser/media/shell.css
浏览文件 @
64005c3d
...
...
@@ -140,6 +140,7 @@
.monaco-shell
input
[
type
=
"button"
]
:active
,
.monaco-shell
input
[
type
=
"submit"
]
:active
,
.monaco-shell
input
[
type
=
"checkbox"
]
:active
,
.monaco-shell
.monaco-tree
.monaco-tree-row
.monaco-action-bar
.action-item
[
tabindex
=
"0"
]
:hover
,
.monaco-shell
.monaco-tree.focused.no-item-focus
:active:before
{
outline
:
0
!important
;
/* fixes some flashing outlines from showing up when clicking */
}
...
...
src/vs/workbench/parts/files/browser/fileActions.ts
浏览文件 @
64005c3d
...
...
@@ -1391,6 +1391,8 @@ export class RefreshViewExplorerAction extends Action {
return
TPromise
.
as
(
null
);
// Global action disabled if user is in edit mode from another action
}
explorerView
.
focusBody
();
return
explorerView
.
refresh
(
true
,
true
,
true
);
});
}
...
...
src/vs/workbench/parts/git/browser/views/changes/changesView.ts
浏览文件 @
64005c3d
...
...
@@ -309,7 +309,6 @@ export class ChangesView extends EventEmitter.EventEmitter implements GitView.IV
if
(
this
.
visible
&&
this
.
tree
.
getSelection
().
indexOf
(
status
)
===
-
1
)
{
return
this
.
tree
.
reveal
(
status
,
0.5
).
then
(()
=>
{
this
.
tree
.
setSelection
([
status
],
{
origin
:
'
implicit
'
});
this
.
tree
.
setFocus
(
status
);
});
}
...
...
src/vs/workbench/parts/output/browser/outputActions.ts
浏览文件 @
64005c3d
...
...
@@ -46,12 +46,17 @@ export class ToggleOutputAction extends Action {
export
class
ClearOutputAction
extends
Action
{
constructor
(@
IOutputService
private
outputService
:
IOutputService
)
{
constructor
(
@
IOutputService
private
outputService
:
IOutputService
,
@
IPanelService
private
panelService
:
IPanelService
)
{
super
(
'
workbench.output.action.clearOutput
'
,
nls
.
localize
(
'
clearOutput
'
,
"
Clear Output
"
),
'
output-action clear-output
'
);
}
public
run
():
Promise
{
this
.
outputService
.
clearOutput
(
this
.
outputService
.
getActiveChannel
());
this
.
panelService
.
getActivePanel
().
focus
();
return
TPromise
.
as
(
true
);
}
}
...
...
src/vs/workbench/parts/search/browser/searchViewlet.ts
浏览文件 @
64005c3d
...
...
@@ -380,9 +380,15 @@ export class CollapseAllAction extends Action {
}
public
run
():
Promise
{
if
(
this
.
viewlet
.
getControl
())
{
return
this
.
viewlet
.
getControl
().
collapseAll
();
let
tree
=
this
.
viewlet
.
getControl
();
if
(
tree
)
{
tree
.
collapseAll
();
tree
.
clearSelection
();
tree
.
clearFocus
();
tree
.
DOMFocus
();
tree
.
focusFirst
();
}
return
TPromise
.
as
(
null
);
}
}
...
...
@@ -743,7 +749,7 @@ export class SearchViewlet extends Viewlet {
};
this
.
queryBox
=
builder
.
div
({
'
class
'
:
'
query-box
'
},
(
div
)
=>
{
let
options
:
IFindInputOptions
=
{
let
options
:
IFindInputOptions
=
{
label
:
nls
.
localize
(
'
label.Search
'
,
'
Search: Type Search Term and press Enter to search or Escape to cancel
'
),
validation
:
(
value
:
string
)
=>
{
if
(
value
.
length
===
0
)
{
...
...
@@ -889,8 +895,8 @@ export class SearchViewlet extends Viewlet {
controller
:
new
SearchController
(),
accessibilityProvider
:
this
.
instantiationService
.
createInstance
(
SearchAccessibilityProvider
)
},
{
ariaLabel
:
nls
.
localize
(
'
treeAriaLabel
'
,
"
Search Results
"
)
});
ariaLabel
:
nls
.
localize
(
'
treeAriaLabel
'
,
"
Search Results
"
)
});
this
.
toUnbind
.
push
(()
=>
renderer
.
dispose
());
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录