From ec291609db76260dad168c951e93faf269ee7cd7 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+orbitalquark@users.noreply.github.com> Date: Sun, 1 Jan 2023 10:49:17 -0500 Subject: [PATCH] Added key binding for menu items example. --- docs/manual.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/manual.md b/docs/manual.md index b9a84d657..54b57ef38 100644 --- a/docs/manual.md +++ b/docs/manual.md @@ -124,6 +124,11 @@ Here is a simple *~/.textadept/init.lua* for illustration: textadept.editing.highlight_words = textadept.editing.HIGHLIGHT_CURRENT textadept.editing.comment_string.ansi_c = '/*|*/' + -- Create a key binding to the "Edit > Preferences" menu item. + if not OSX and not CURSES then + keys['ctrl+,'] = textadept.menu.menubar[_L['Edit']][_L['Preferences']][2] + end + -- Load an external module and bind a key to it. local ctags = require('ctags') keys.f12 = ctags.goto_tag