From e37c2d602b3bfb39941e15ec14d7bfd523f5b25a Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sat, 20 Jan 2024 06:08:56 +0300 Subject: fnkeys.tes: support zooming via F9/F10 * Works only in Gtk of course and only in the parser start state. * Since its side effects can neither be reversed, nor does it have any side effects on the editor state, we can completely rub it out. * Currently, it will only affect the current buffer and only the text area. It would be trivial to apply the zoom to the commandline widget as well (FIXME?). There is currently no way that the zoom value or any font size could be passed to the CSS, though. So the auto-completion overlay could only be zoomed if Gtk supports a zoom factor as well. --- lib/fnkeys.tes | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/fnkeys.tes b/lib/fnkeys.tes index d0c0e66..f33af2b 100644 --- a/lib/fnkeys.tes +++ b/lib/fnkeys.tes @@ -95,5 +95,14 @@ @[CLOSE]{(EX)} 1U[CLOSE] +!* + * Zoom with F9/F10 if function keys are enabled. + * This is automatically rubbed out. + *! +@[F9]{(ESZOOMOUT{-13D}} +1U[F9] +@[F10]{(ESZOOMIN{-12D}} +1U[F10] + ! enable function key (macro) support ! 0,64ED -- cgit v1.2.3