diff --git a/src/Resources/Locales/en_US.axaml b/src/Resources/Locales/en_US.axaml index 0f7ea7f3..95773c46 100644 --- a/src/Resources/Locales/en_US.axaml +++ b/src/Resources/Locales/en_US.axaml @@ -319,6 +319,7 @@ REPOSITORY Commit staged changes Commit and push staged changes + Discard selected changes Dashboard mode (Default) Force to reload this repository Stage/Unstage selected changes diff --git a/src/Resources/Locales/zh_CN.axaml b/src/Resources/Locales/zh_CN.axaml index 5da23686..986d77d0 100644 --- a/src/Resources/Locales/zh_CN.axaml +++ b/src/Resources/Locales/zh_CN.axaml @@ -322,6 +322,7 @@ 仓库页面快捷键 提交暂存区更改 提交暂存区更改并推送 + 丟棄選中的更改 切换左边栏为分支/标签等显示模式(默认) 重新加载仓库状态 将选中的变更暂存或从暂存列表中移除 diff --git a/src/Resources/Locales/zh_TW.axaml b/src/Resources/Locales/zh_TW.axaml index 1f026d0f..41f55975 100644 --- a/src/Resources/Locales/zh_TW.axaml +++ b/src/Resources/Locales/zh_TW.axaml @@ -322,6 +322,7 @@ 存放庫頁面快速鍵 提交暫存區變更 提交暫存區變更並推送 + 丢弃选中的更改 切換左邊欄為分支/標籤等顯示模式 (預設) 強制重新載入存放庫 暫存選取的變更或從暫存列表中移除 diff --git a/src/Views/Hotkeys.axaml b/src/Views/Hotkeys.axaml index 80797572..121b6534 100644 --- a/src/Views/Hotkeys.axaml +++ b/src/Views/Hotkeys.axaml @@ -85,7 +85,7 @@ FontSize="{Binding Source={x:Static vm:Preference.Instance}, Path=DefaultFontSize, Converter={x:Static c:DoubleConverters.Increase}}" Margin="0,8"/> - + @@ -103,15 +103,18 @@ + + + - - + + - - + + - - + + 0 } selected) + { + vm.Discard(selected); + e.Handled = true; + return; + } } }