Content changes for TextEdit (#12557)
This commit is contained in:
committed by
GitHub
parent
e63bfff645
commit
d49cb30df2
@@ -795,6 +795,10 @@ namespace Content.Client.Stylesheets
|
|||||||
{
|
{
|
||||||
new StyleProperty("font-color", Color.Gray),
|
new StyleProperty("font-color", Color.Gray),
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
Element<TextEdit>().Pseudo(TextEdit.StylePseudoClassPlaceholder)
|
||||||
|
.Prop("font-color", Color.Gray),
|
||||||
|
|
||||||
// Chat lineedit - we don't actually draw a stylebox around the lineedit itself, we put it around the
|
// Chat lineedit - we don't actually draw a stylebox around the lineedit itself, we put it around the
|
||||||
// input + other buttons, so we must clear the default stylebox
|
// input + other buttons, so we must clear the default stylebox
|
||||||
new StyleRule(new SelectorElement(typeof(LineEdit), new[] {StyleClassChatLineEdit}, null, null),
|
new StyleRule(new SelectorElement(typeof(LineEdit), new[] {StyleClassChatLineEdit}, null, null),
|
||||||
|
|||||||
@@ -226,6 +226,16 @@ binds:
|
|||||||
type: State
|
type: State
|
||||||
key: Right
|
key: Right
|
||||||
canRepeat: true
|
canRepeat: true
|
||||||
|
- function: TextCursorUp
|
||||||
|
type: State
|
||||||
|
key: Up
|
||||||
|
canRepeat: true
|
||||||
|
priority: 2
|
||||||
|
- function: TextCursorDown
|
||||||
|
type: State
|
||||||
|
key: Down
|
||||||
|
canRepeat: true
|
||||||
|
priority: 2
|
||||||
- function: TextCursorWordLeft
|
- function: TextCursorWordLeft
|
||||||
type: State
|
type: State
|
||||||
key: Left
|
key: Left
|
||||||
@@ -257,6 +267,18 @@ binds:
|
|||||||
mod1: Shift
|
mod1: Shift
|
||||||
canRepeat: true
|
canRepeat: true
|
||||||
allowSubCombs: true
|
allowSubCombs: true
|
||||||
|
- function: TextCursorSelectUp
|
||||||
|
type: State
|
||||||
|
key: Up
|
||||||
|
mod1: Shift
|
||||||
|
canRepeat: true
|
||||||
|
allowSubCombs: true
|
||||||
|
- function: TextCursorSelectDown
|
||||||
|
type: State
|
||||||
|
key: Down
|
||||||
|
mod1: Shift
|
||||||
|
canRepeat: true
|
||||||
|
allowSubCombs: true
|
||||||
- function: TextCursorSelectWordLeft
|
- function: TextCursorSelectWordLeft
|
||||||
type: State
|
type: State
|
||||||
key: Left
|
key: Left
|
||||||
@@ -286,6 +308,14 @@ binds:
|
|||||||
type: State
|
type: State
|
||||||
key: BackSpace
|
key: BackSpace
|
||||||
canRepeat: true
|
canRepeat: true
|
||||||
|
- function: TextNewline
|
||||||
|
type: State
|
||||||
|
key: Return
|
||||||
|
canRepeat: true
|
||||||
|
- function: TextNewline
|
||||||
|
type: State
|
||||||
|
key: NumpadEnter
|
||||||
|
canRepeat: true
|
||||||
- function: TextSubmit
|
- function: TextSubmit
|
||||||
type: State
|
type: State
|
||||||
key: Return
|
key: Return
|
||||||
|
|||||||
Reference in New Issue
Block a user