mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
FancyZones: improve windows and apps filtering (#673)
Unifies the way windows are considered "interesting" by FancyZone. Berfore the change WinKey + arrows would use different method than dragging. This PR makes both use the WinKey + arrows method. Cleans up FancyZones Settings.cpp by removing m_configStrings variable. Contrary to its name it was used to create color picker control. Adds a multiline option to the text input to settings. Uses this to provide the user with a way to exclude certain apps from snapping to zones.
This commit is contained in:
committed by
GitHub
parent
4df1d2093f
commit
03438f9192
@@ -9,7 +9,8 @@ export class StringTextSettingsControl extends BaseSettingsControl {
|
||||
super(props);
|
||||
this.textref = null;
|
||||
this.state={
|
||||
property_values: props.setting
|
||||
property_values: props.setting,
|
||||
multiline: !!props.setting.multiline
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,6 +29,10 @@ export class StringTextSettingsControl extends BaseSettingsControl {
|
||||
// Renders a UI Fabric TextField.
|
||||
return (
|
||||
<TextField
|
||||
styles={{ fieldGroup: {
|
||||
width: '350px',
|
||||
alignSelf: 'start'
|
||||
}}}
|
||||
onChange = {
|
||||
(_event,_new_value) => {
|
||||
// Updates the state with the new value introduced in the TextField.
|
||||
@@ -42,6 +47,7 @@ export class StringTextSettingsControl extends BaseSettingsControl {
|
||||
this.parent_on_change();
|
||||
}
|
||||
}
|
||||
multiline={this.state.multiline}
|
||||
value={this.state.property_values.value}
|
||||
label={this.state.property_values.display_name}
|
||||
componentRef= {(input) => {this.textref=input;}}
|
||||
|
||||
Reference in New Issue
Block a user