Content changes for TextEdit (#12557)

This commit is contained in:
Pieter-Jan Briers
2022-11-13 06:56:01 +01:00
committed by GitHub
parent e63bfff645
commit d49cb30df2
2 changed files with 34 additions and 0 deletions

View File

@@ -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),

View File

@@ -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