Skip to content

Commit

Permalink
Merge branch 'master' of github.com:libobjc/SGWindowLayout
Browse files Browse the repository at this point in the history
  • Loading branch information
libobjc committed Apr 23, 2017
2 parents e6a88a2 + d8bf668 commit 50524a0
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
![Logo](https://github.com/libobjc/resource/blob/master/SGWindowLayout/SGWindowLayout-logo.png?raw=true)

# SGWindowLayout for macOS
# SGWindowLayout

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

## 功能特点

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

## 使用示例

默认绑定了如下快捷键

- Control + A -> 铺满屏幕左半部分
- Control + S -> 全屏
- Control + D -> 铺满屏幕左右部分
- Control + W -> 铺满屏幕上半部分
- Control + X -> 铺满屏幕下半部分

如需更改,可在 AppDelegate 的 registerHotKey 方法中更改。例如:

```obj-c
// 使用 control + a 将当前焦点窗口铺满屏幕左半部分。
[SGWLHotKey registerLayoutAttribute:SGWLLayoutAttributeLeft keyCode:SGWLKeyCodeA modifiers:SGWLModifiersKeyControl];
```
### 默认加入了
## 效果演示
![Example](https://github.com/libobjc/resource/blob/master/SGWindowLayout/SGWindowLayout-example.gif?raw=true)
Expand Down

0 comments on commit 50524a0

Please sign in to comment.