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

@ -44,6 +44,7 @@
## Thanks
* [XiaoLinger](https://gitee.com/LingerNN) 增加`CTRL + Enter`提交快捷键
* [carterl](https://gitee.com/carterl) Windows Terminal支持优化git.exe路径查找
* [PUMA](https://gitee.com/whgfu) 配置默认User
* [Rwing](https://gitee.com/rwing) GitFlow: add an option to keep branch after finish

View file

@ -426,6 +426,7 @@
<sys:String x:Key="Text.WorkingCopy.MessageHistories">MESSAGE HISTORIES</sys:String>
<sys:String x:Key="Text.WorkingCopy.Amend">Amend</sys:String>
<sys:String x:Key="Text.WorkingCopy.Commit">COMMIT</sys:String>
<sys:String x:Key="Text.WorkingCopy.CommitTip">CTRL + Enter</sys:String>
<sys:String x:Key="Text.WorkingCopy.CommitAndPush">COMMIT &amp; PUSH</sys:String>
<sys:String x:Key="Text.WorkingCopy.NoCommitHistories">NO RECENT INPUT MESSAGES</sys:String>
<sys:String x:Key="Text.WorkingCopy.HasCommitHistories">RECENT INPUT MESSAGES</sys:String>

View file

@ -425,6 +425,7 @@
<sys:String x:Key="Text.WorkingCopy.MessageHistories">历史提交信息</sys:String>
<sys:String x:Key="Text.WorkingCopy.Amend">修补</sys:String>
<sys:String x:Key="Text.WorkingCopy.Commit">提交</sys:String>
<sys:String x:Key="Text.WorkingCopy.CommitTip">CTRL + Enter</sys:String>
<sys:String x:Key="Text.WorkingCopy.CommitAndPush">提交并推送</sys:String>
<sys:String x:Key="Text.WorkingCopy.NoCommitHistories">没有提交信息记录</sys:String>
<sys:String x:Key="Text.WorkingCopy.HasCommitHistories">最近输入的提交信息</sys:String>

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);
}
}