Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
5633b21e
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,发现更多精彩内容 >>
提交
5633b21e
编写于
1月 28, 2016
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #2497 from Microsoft/joh/#2491
fix #2491
上级
3ffdeb1b
fa1c7978
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
14 addition
and
1 deletion
+14
-1
src/vs/base/browser/ui/inputbox/inputBox.ts
src/vs/base/browser/ui/inputbox/inputBox.ts
+7
-0
src/vs/workbench/electron-browser/media/shell.css
src/vs/workbench/electron-browser/media/shell.css
+7
-1
未找到文件。
src/vs/base/browser/ui/inputbox/inputBox.ts
浏览文件 @
5633b21e
...
@@ -9,6 +9,7 @@ import 'vs/css!./inputBox';
...
@@ -9,6 +9,7 @@ import 'vs/css!./inputBox';
import
*
as
Bal
from
'
vs/base/browser/browser
'
;
import
*
as
Bal
from
'
vs/base/browser/browser
'
;
import
*
as
dom
from
'
vs/base/browser/dom
'
;
import
*
as
dom
from
'
vs/base/browser/dom
'
;
import
*
as
browser
from
'
vs/base/browser/browserService
'
;
import
*
as
browser
from
'
vs/base/browser/browserService
'
;
import
{
IDisposable
,
disposeAll
}
from
'
vs/base/common/lifecycle
'
;
import
{
IHTMLContentElement
}
from
'
vs/base/common/htmlContent
'
;
import
{
IHTMLContentElement
}
from
'
vs/base/common/htmlContent
'
;
import
{
renderHtml
}
from
'
vs/base/browser/htmlContentRenderer
'
;
import
{
renderHtml
}
from
'
vs/base/browser/htmlContentRenderer
'
;
import
{
IAction
}
from
'
vs/base/common/actions
'
;
import
{
IAction
}
from
'
vs/base/common/actions
'
;
...
@@ -70,6 +71,7 @@ export class InputBox extends Widget {
...
@@ -70,6 +71,7 @@ export class InputBox extends Widget {
private
showValidationMessage
:
boolean
;
private
showValidationMessage
:
boolean
;
private
state
=
'
idle
'
;
private
state
=
'
idle
'
;
private
cachedHeight
:
number
;
private
cachedHeight
:
number
;
private
disposables
:
IDisposable
[]
=
[];
private
_onDidChange
=
this
.
_register
(
new
Emitter
<
string
>
());
private
_onDidChange
=
this
.
_register
(
new
Emitter
<
string
>
());
public
onDidChange
:
Event
<
string
>
=
this
.
_onDidChange
.
event
;
public
onDidChange
:
Event
<
string
>
=
this
.
_onDidChange
.
event
;
...
@@ -102,6 +104,10 @@ export class InputBox extends Widget {
...
@@ -102,6 +104,10 @@ export class InputBox extends Widget {
this
.
input
.
setAttribute
(
'
autocorrect
'
,
'
off
'
);
this
.
input
.
setAttribute
(
'
autocorrect
'
,
'
off
'
);
this
.
input
.
setAttribute
(
'
autocapitalize
'
,
'
off
'
);
this
.
input
.
setAttribute
(
'
autocapitalize
'
,
'
off
'
);
this
.
input
.
setAttribute
(
'
spellcheck
'
,
'
false
'
);
this
.
input
.
setAttribute
(
'
spellcheck
'
,
'
false
'
);
this
.
disposables
.
push
(
dom
.
addDisposableListener
(
this
.
input
,
dom
.
EventType
.
FOCUS
,
()
=>
dom
.
addClass
(
this
.
element
,
'
synthetic-focus
'
)),
dom
.
addDisposableListener
(
this
.
input
,
dom
.
EventType
.
BLUR
,
()
=>
dom
.
removeClass
(
this
.
element
,
'
synthetic-focus
'
)));
if
(
this
.
options
.
flexibleHeight
)
{
if
(
this
.
options
.
flexibleHeight
)
{
this
.
mirror
=
dom
.
append
(
wrapper
,
$
(
'
div.mirror
'
));
this
.
mirror
=
dom
.
append
(
wrapper
,
$
(
'
div.mirror
'
));
...
@@ -356,6 +362,7 @@ export class InputBox extends Widget {
...
@@ -356,6 +362,7 @@ export class InputBox extends Widget {
public
dispose
():
void
{
public
dispose
():
void
{
this
.
_hideMessage
();
this
.
_hideMessage
();
this
.
disposables
=
disposeAll
(
this
.
disposables
);
this
.
element
=
null
;
this
.
element
=
null
;
this
.
input
=
null
;
this
.
input
=
null
;
...
...
src/vs/workbench/electron-browser/media/shell.css
浏览文件 @
5633b21e
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
/* START Keyboard Focus Indication Styles */
/* START Keyboard Focus Indication Styles */
.monaco-shell.vs
[
tabindex
=
"0"
]
:focus
,
.monaco-shell.vs
[
tabindex
=
"0"
]
:focus
,
.monaco-shell.vs
select
:
focus
,
.monaco-shell.vs
.synthetic-
focus
,
.monaco-shell.vs
input
[
type
=
"button"
]
:focus
,
.monaco-shell.vs
input
[
type
=
"button"
]
:focus
,
.monaco-shell.vs
input
[
type
=
"submit"
]
:focus
,
.monaco-shell.vs
input
[
type
=
"submit"
]
:focus
,
.monaco-shell.vs
input
[
type
=
"text"
]
:focus
,
.monaco-shell.vs
textarea
:focus
,
.monaco-shell.vs
input
[
type
=
"text"
]
:focus
,
.monaco-shell.vs
textarea
:focus
,
...
@@ -61,6 +61,7 @@
...
@@ -61,6 +61,7 @@
}
}
.monaco-shell.vs-dark
[
tabindex
=
"0"
]
:focus
,
.monaco-shell.vs-dark
[
tabindex
=
"0"
]
:focus
,
.monaco-shell.vs-dark
.synthetic-focus
,
.monaco-shell.vs-dark
select
:focus
,
.monaco-shell.vs-dark
select
:focus
,
.monaco-shell.vs-dark
input
[
type
=
"button"
]
:focus
,
.monaco-shell.vs-dark
input
[
type
=
"button"
]
:focus
,
.monaco-shell.vs-dark
input
[
type
=
"submit"
]
:focus
,
.monaco-shell.vs-dark
input
[
type
=
"submit"
]
:focus
,
...
@@ -72,6 +73,7 @@
...
@@ -72,6 +73,7 @@
}
}
.monaco-shell.hc-black
[
tabindex
=
"0"
]
:focus
,
.monaco-shell.hc-black
[
tabindex
=
"0"
]
:focus
,
.monaco-shell.hc-black
.synthetic-focus
,
.monaco-shell.hc-black
select
:focus
,
.monaco-shell.hc-black
select
:focus
,
.monaco-shell.hc-black
input
[
type
=
"button"
]
:focus
,
.monaco-shell.hc-black
input
[
type
=
"button"
]
:focus
,
.monaco-shell.hc-black
input
[
type
=
"submit"
]
:focus
,
.monaco-shell.hc-black
input
[
type
=
"submit"
]
:focus
,
...
@@ -104,6 +106,10 @@
...
@@ -104,6 +106,10 @@
outline-offset
:
-2px
;
outline-offset
:
-2px
;
}
}
.monaco-shell
.synthetic-focus
:focus
{
outline
:
0
!important
;
/* elements within widgets that draw synthetic-focus should never show focus */
}
.monaco-shell
.monaco-inputbox.info
input
[
type
=
"text"
]
:focus
,
.monaco-shell
.monaco-inputbox.info
input
[
type
=
"text"
]
:focus
,
.monaco-shell
.monaco-inputbox.warning
input
[
type
=
"text"
]
:focus
,
.monaco-shell
.monaco-inputbox.warning
input
[
type
=
"text"
]
:focus
,
.monaco-shell
.monaco-inputbox.error
input
[
type
=
"text"
]
:focus
{
.monaco-shell
.monaco-inputbox.error
input
[
type
=
"text"
]
:focus
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录