Ionaru / Ionaru/easy-markdown-editor

MacOS: conflicting keyboard shortcut to toggle preview (Cmd-P)

Open
#489 3 comments 0 reactions 0 assignees View on GitHub
Bug
Dominant language
JavaScript
Stars
3.1k
Forks
363
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
On MacOS, Cmd+P is the defacto shortcut for **Print**

**To Reproduce**
Steps to reproduce the behavior:
1. Type +P
2. **Print** setting will open

**Expected behavior**
Toggle preview

**Screenshots**
![image](https://user-images.githubusercontent.com/5355219/181732284-742c63b1-ffe6-42f6-b543-97e1812b14f4.png)

**Version information**
- OS: MacOS
- Browser: Safari 15.6 (17613.3.9.1.5)
- EasyMDE version: -

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Research direction

No file or test is named. Start by locating the MacOS Cmd-P keyboard shortcut handling in the editor and reproduce the behavior in Safari; done means Cmd-P toggles preview without opening the Print setting.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.