diff --git a/examples/code_blocks.md b/examples/code_blocks.md index a9704193..be60832c 100644 --- a/examples/code_blocks.md +++ b/examples/code_blocks.md @@ -2,7 +2,7 @@ Slides allows you to execute code blocks directly inside your slides! -Just press `e` and the result of the code block will be displayed as virtual +Just press `ctrl+e` and the result of the code block will be displayed as virtual text in your slides. Currently supported languages: diff --git a/internal/model/model.go b/internal/model/model.go index b1ada5fc..f36fccaf 100644 --- a/internal/model/model.go +++ b/internal/model/model.go @@ -106,7 +106,7 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { m.Page-- } m.VirtualText = "" - case "e": + case "ctrl+e": // Run code block block, err := code.Parse(m.Slides[m.Page]) if err != nil {