Skip to content

Commit 40323fa

Browse files
committed
Merge branch 'next' of https://github.com/rubberduck-vba/Rubberduck into rkapka-master
2 parents 798ab45 + 4dcc4f2 commit 40323fa

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

RetailCoder.VBE/UI/Refactorings/Rename/RenameView.xaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
<TextBlock Text="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=NameLabelText}"
2929
VerticalAlignment="Top"
3030
Margin="0,0,5,0" />
31-
<TextBox Grid.Column="1"
31+
<TextBox Name="RenameTextBox"
32+
Grid.Column="1"
3233
Text="{Binding NewName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
3334
Height="22"
3435
VerticalAlignment="Top"
@@ -55,12 +56,14 @@
5556
Margin="5,0"
5657
Padding="10,0"
5758
IsEnabled="{Binding IsValidName}"
59+
IsDefault="True"
5860
Command="{Binding OkButtonCommand}" />
5961
<Button Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=CancelButtonText}"
6062
Grid.Column="1"
6163
Height="20"
6264
Margin="5,0"
6365
Padding="10,0"
66+
IsCancel="True"
6467
Command="{Binding CancelButtonCommand}">
6568
</Button>
6669
</Grid>

RetailCoder.VBE/UI/Refactorings/Rename/RenameView.xaml.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ public partial class RenameView
55
public RenameView()
66
{
77
InitializeComponent();
8+
9+
Loaded += (o, e) =>
10+
{
11+
RenameTextBox.Focus();
12+
RenameTextBox.SelectAll();
13+
};
814
}
915
}
1016
}

0 commit comments

Comments
 (0)