hackmdio / hackmdio/hackmd-io-issues

"Keyboard Shortcut" menu gets open (and doesn't close) when typing a question mark in the slide text.

Đang mở
#331 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
40
Fork
9
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Is this a hackmd.io issue?

- [X] Yes, the bug happens on https://hackmd.io
- [ ] No. If it's a self-hosted CodiMD instance, please fire up the issue in the repo of CodiMD: https://github.com/hackmdio/codimd

### What's the problem

During slide creation, shortcut menu gets opened, and doesn't get closed.

#### Current behaviour

Typing a slide text that contains a question mark the "Keyboard Shortcuts " menu permanently.

image

Provide steps to reproduce:

1. Start a hackmd document, with "slides" preview:
```
---
type: slide
---
```

2. Write a line with a question mark
```
Is this a slide?
```

3. Outcome: the "Keyboard Shortcuts" menu open, and hide the slide text.

#### Expected behaviour

The shortcut menu should disappear when moving to another slide, or typing more text

#### Environment

I use HackMD on:

**Desktop**
- OS: [macOS]
- Browser: [chrome]
- Browser Version: [71]

#### Workaround

Currently, the only way to close this dialog is to typing **another** question mark (and delete it) - but that is a bit counter-intuitive.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện vấn đề trên hackmd.io với bản xem trước trang trình chiếu và văn bản mẫu chứa dấu chấm hỏi. Theo dõi hành vi của menu phím tắt và xác minh rằng menu đóng lại khi chuyển sang trang trình chiếu khác hoặc tiếp tục nhập, mà không cần thêm dấu chấm hỏi thứ hai.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Lĩnh vực
frontend
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.