Skip to content

Commit

Permalink
🐛 fix #293
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Apr 9, 2020
1 parent 33eeee4 commit 689157f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@

### v3.1.4 / 2020-04-0x

* [293](https://github.com/Vanessa219/vditor/issues/293) iOS Safari 快捷键显示为 Windows 版本 `修复缺陷`
* [290](https://github.com/Vanessa219/vditor/pull/290) 🎨 add minHeight `改进功能`

### v3.1.3 / 2020-04-08
Expand Down
2 changes: 1 addition & 1 deletion src/assets/scss/_toolbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,10 @@
position: sticky;
top: 0;
z-index: 1;
margin: 0 4px;
}
.vditor-toolbar__item .vditor-tooltipped {
padding: 10px 8px;
width: 31px;
margin: 0 4px;
}
}
2 changes: 1 addition & 1 deletion src/ts/util/compatibility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const isCtrl = (event: KeyboardEvent) => {

// Mac,Windows 快捷键展示
export const updateHotkeyTip = (hotkey: string) => {
if (/Mac/.test(navigator.platform)) {
if (/Mac/.test(navigator.platform) || navigator.platform === 'iPhone') {
hotkey = hotkey.replace("ctrl", "⌘").replace("shift", "⇧")
.replace("alt", "⌥");
if (hotkey.indexOf("⇧") > -1) {
Expand Down

0 comments on commit 689157f

Please sign in to comment.