Skip to content

Commit 50524a0

Browse files
committed
Merge branch 'master' of github.com:libobjc/SGWindowLayout
2 parents e6a88a2 + d8bf668 commit 50524a0

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
![Logo](https://github.com/libobjc/resource/blob/master/SGWindowLayout/SGWindowLayout-logo.png?raw=true)
22

3-
# SGWindowLayout for macOS
3+
# SGWindowLayout
44

5-
SGWindowLayout 是一款 macOS 平台的窗口布局工具
5+
SGWindowLayout 是一款 macOS 窗口布局小应用
66

77
## 功能特点
88

@@ -12,11 +12,23 @@ SGWindowLayout 是一款 macOS 平台的窗口布局工具。
1212

1313
## 使用示例
1414

15+
默认绑定了如下快捷键
16+
17+
- Control + A -> 铺满屏幕左半部分
18+
- Control + S -> 全屏
19+
- Control + D -> 铺满屏幕左右部分
20+
- Control + W -> 铺满屏幕上半部分
21+
- Control + X -> 铺满屏幕下半部分
22+
23+
如需更改,可在 AppDelegate 的 registerHotKey 方法中更改。例如:
24+
1525
```obj-c
1626
// 使用 control + a 将当前焦点窗口铺满屏幕左半部分。
1727
[SGWLHotKey registerLayoutAttribute:SGWLLayoutAttributeLeft keyCode:SGWLKeyCodeA modifiers:SGWLModifiersKeyControl];
1828
```
1929
30+
### 默认加入了
31+
2032
## 效果演示
2133
2234
![Example](https://github.com/libobjc/resource/blob/master/SGWindowLayout/SGWindowLayout-example.gif?raw=true)

0 commit comments

Comments
 (0)