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),
|
||||
}),
|
||||
|
||||
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
|
||||
// input + other buttons, so we must clear the default stylebox
|
||||
new StyleRule(new SelectorElement(typeof(LineEdit), new[] {StyleClassChatLineEdit}, null, null),
|
||||
|
||||
@@ -226,6 +226,16 @@ binds:
|
||||
type: State
|
||||
key: Right
|
||||
canRepeat: true
|
||||
- function: TextCursorUp
|
||||
type: State
|
||||
key: Up
|
||||
canRepeat: true
|
||||
priority: 2
|
||||
- function: TextCursorDown
|
||||
type: State
|
||||
key: Down
|
||||
canRepeat: true
|
||||
priority: 2
|
||||
- function: TextCursorWordLeft
|
||||
type: State
|
||||
key: Left
|
||||
@@ -257,6 +267,18 @@ binds:
|
||||
mod1: Shift
|
||||
canRepeat: 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
|
||||
type: State
|
||||
key: Left
|
||||
@@ -286,6 +308,14 @@ binds:
|
||||
type: State
|
||||
key: BackSpace
|
||||
canRepeat: true
|
||||
- function: TextNewline
|
||||
type: State
|
||||
key: Return
|
||||
canRepeat: true
|
||||
- function: TextNewline
|
||||
type: State
|
||||
key: NumpadEnter
|
||||
canRepeat: true
|
||||
- function: TextSubmit
|
||||
type: State
|
||||
key: Return
|
||||
|
||||
Reference in New Issue
Block a user