Add page up/down bindings to the Markdown preview (#33403)
First time contributor here. 😊 I settled on markdown::MovePageUp and markdown::MovePageDown to match the names the editor uses for the same functionality. Closes #30246 Release Notes: - Support PgUp/PgDown in Markdown previews
This commit is contained in:
parent
123a25c58c
commit
f000dfebd2
5 changed files with 119 additions and 4 deletions
|
@ -8,7 +8,13 @@ pub mod markdown_renderer;
|
|||
|
||||
actions!(
|
||||
markdown,
|
||||
[OpenPreview, OpenPreviewToTheSide, OpenFollowingPreview]
|
||||
[
|
||||
MovePageUp,
|
||||
MovePageDown,
|
||||
OpenPreview,
|
||||
OpenPreviewToTheSide,
|
||||
OpenFollowingPreview
|
||||
]
|
||||
);
|
||||
|
||||
pub fn init(cx: &mut App) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue