Skip to content

Commit

Permalink
fix linux keyboard event; update readme; bump version.
Browse files Browse the repository at this point in the history
  • Loading branch information
Archeb committed Sep 1, 2023
1 parent 00b2e49 commit 4759b4d
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 16 deletions.
6 changes: 5 additions & 1 deletion MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public partial class MainForm : Form
public MainForm()
{
Title = Resources.APPTITLE;
MinimumSize = new Size(860, 600);
MinimumSize = new Size(900, 600);

// 创建菜单项
var newWindowCommand = new Command { MenuText = Resources.NEW, ToolBarText = Resources.NEW_WINDOW_TEXT, Shortcut = Application.Instance.CommonModifier | Keys.N };
Expand Down Expand Up @@ -291,6 +291,10 @@ private void HostInputBox_KeyUp(object sender, KeyEventArgs e)
{
enterPressed = false;
StartTracerouteButton_Click(sender, e);
} else if (e.Key == Keys.Enter && RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
{
// 似乎是上游兼容性问题
StartTracerouteButton_Click(sender, e);
}
}

Expand Down
2 changes: 1 addition & 1 deletion OpenTrace.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<Title>OpenTrace</Title>
<ApplicationIcon>icon.ico</ApplicationIcon>
<PackageIcon>icon.png</PackageIcon>
<Version>1.2.4.2</Version>
<Version>1.3.0.0</Version>

</PropertyGroup>

Expand Down
16 changes: 9 additions & 7 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ You need a working **NextTrace V1** (>= 1.1.7) executable to use this.

[English Version](readme_en.md)

### 使用方法

- 自行编译或从 [releases](https://github.com/Archeb/opentrace/releases) 里下载 OpenTrace

- 下载并安装 [NextTrace V1](https://github.com/nxtrace/Ntrace-V1/releases): 从 [这里](https://github.com/nxtrace/Ntrace-V1/releases) 下载对应系统架构的 NextTrace,然后将其放置于 OpenTrace 目录下,或者放置到系统 PATH 环境变量包含的目录中;您亦可以放到任意位置并手动指定路径(macOS 用户推荐)。

- 运行 OpenTrace(.exe)

### 功能

- [x] 跨平台原生GUI(Windows WPF / Linux GTK / macOS)
Expand All @@ -32,13 +40,7 @@ You need a working **NextTrace V1** (>= 1.1.7) executable to use this.

新功能不断添加中...欢迎向我们[提出功能请求](https://github.com/Archeb/opentrace/issues/new/choose)

### 使用方法

- 自行编译或从 [releases](https://github.com/Archeb/opentrace/releases) 里下载 OpenTrace

- 下载并安装 [NextTrace V1](https://github.com/nxtrace/Ntrace-V1/releases): 从 [这里](https://github.com/nxtrace/Ntrace-V1/releases) 下载对应系统架构的 NextTrace,然后将其放置于 OpenTrace 目录下,或者放置到系统 PATH 环境变量包含的目录中;您亦可以放到任意位置并手动指定路径(macOS 用户推荐)。

- 运行 OpenTrace(.exe)
提示:您也可以在[本项目的 Actions 页面](https://github.com/Archeb/opentrace/actions) 下载对应架构的最新测试版;但其可能包含错误或者漏洞,或出现运行不稳定等现象。

### 预览图

Expand Down
16 changes: 9 additions & 7 deletions readme_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ OpenTrace is a cross-platform GUI wrapper for NextTrace. Bringing you a sense of

You need a working **NextTrace V1** (>= 1.1.7) executable to use this.

### Usage

- Download OpenTrace from [releases](https://github.com/Archeb/opentrace/releases) or build your own binary.

- Follow the instruction to install [NextTrace V1](https://github.com/nxtrace/Ntrace-V1/releases): Download the latest release from [here](https://github.com/nxtrace/Ntrace-V1/releases), and place it in either the same directory as the OpenTrace executable or a directory included in your system's PATH environment variable. You can also put it anywhere and specify the path manually (recommended for macOS users).

- Run OpenTrace(.exe)

### Features

- [x] Cross-platform native GUI (Windows WPF / Linux GTK / macOS)
Expand All @@ -26,13 +34,7 @@ You need a working **NextTrace V1** (>= 1.1.7) executable to use this.

More is coming... [Feature request](https://github.com/Archeb/opentrace/issues/new/choose) is welcome!

### Usage

- Download OpenTrace from [releases](https://github.com/Archeb/opentrace/releases) or build your own binary.

- Follow the instruction to install [NextTrace V1](https://github.com/nxtrace/Ntrace-V1/releases): Download the latest release from [here](https://github.com/nxtrace/Ntrace-V1/releases), and place it in either the same directory as the OpenTrace executable or a directory included in your system's PATH environment variable. You can also put it anywhere and specify the path manually (recommended for macOS users).

- Run OpenTrace(.exe)
Tip: You can also download the latest beta version of the corresponding architecture from the [Actions page of this project](https://github.com/Archeb/opentrace/actions); however, it may contain bugs or vulnerabilities, or may be unstable.

### Images

Expand Down

0 comments on commit 4759b4d

Please sign in to comment.