update<README>: update thanks; add tooltip for commit hot key

This commit is contained in:
leo 2021-11-08 20:47:03 +08:00
parent eec87f17cd
commit ef7cd2176a
5 changed files with 7 additions and 5 deletions

View file

@ -235,7 +235,8 @@
FontWeight="Bold"
Background="{DynamicResource Brush.Accent1}"
BorderBrush="{DynamicResource Brush.FG1}"
Content="{DynamicResource Text.WorkingCopy.Commit}"/>
Content="{DynamicResource Text.WorkingCopy.Commit}"
ToolTip="{DynamicResource Text.WorkingCopy.CommitTip}"/>
<Button
Grid.Column="5"

View file

@ -357,10 +357,8 @@ namespace SourceGit.Views.Widgets {
e.Handled = true;
}
private void CommitMessageKeyDown(object sender, KeyEventArgs e)
{
if (e.Key == Key.Enter && (Keyboard.Modifiers & ModifierKeys.Control) == ModifierKeys.Control)
{
private void CommitMessageKeyDown(object sender, KeyEventArgs e) {
if (e.Key == Key.Enter && (Keyboard.Modifiers & ModifierKeys.Control) == ModifierKeys.Control) {
Commit(sender, e);
}
}