Il 19/10/22 14:51, Pavel Sanda ha scritto:
On Tue, Oct 11, 2022 at 03:28:47PM +0200, Lorenzo Bertini wrote:
Hi LyX users!

I have a keyboard that doesn't have the function keys, so the ESC button
also contains the \ key. You can probably see where this is going: every
time i want to type \ I have to press FN and then ESC.

How could I make it so ESC is not "escape" (which I don't really need) but
instead "input \"? I figured I have to edit keybinds, but what would the
correct command be?

One can approach this on different levels:
1) systems-wise via xmodmap (if you are on linux)
2) lyx-wise via keyboard maps in prefs (no guarantee how much maps still work)
2) lyx-wise via keybinding esc to "unicode-insert 005c"

It might be better idea to bind to different key than getting rid of escape 
though :)

Pavel

I'm on linux (debian), and I tried xmodmap, but it's system wide, and i need ESC more than \ in programs other than Lyx. Lyx's keybinding via "unicode-insert" is what I was looking for, thanks! Unfortunately it doesn't seem to work, either with "005c" or "\". I used the gui keybinding editor if that matters.

Il 19/10/22 17:33, Christopher Menzel ha scritto:
I can only report that I have had no problems using Karabiner-Elements with LyX 
on three Macs — an M1 air, an M1 Macbook Pro (both running Monterey), and a 
2014 iMac running Big Sur. I use emacs keybindings, in case that’s relevant.

-chris

On 19 Oct 2022, at 10:21 , Scott Kostyshak <skost...@lyx.org> wrote:

On Wed, Oct 19, 2022 at 08:13:24AM -0500, Christopher Menzel wrote:
You don’t identify your OS. Pavel gives you the answer for Linux. If you are on 
MacOS, Karabiner-Elements can do that sort of remapping in a jiffy via a 
convenient graphical interface. On Windows it’s a bit more work. You can either 
edit the registry (instructions are easy to find), use the Microsoft Powertoys 
program, or use the much more powerful AutoHotkey scripting app. AutoHotkey 
requires you to create a text file with some quirky syntax but it’s a super 
powerful program that can do way more than  keys remapping. Again, exact 
instructions are easy to google.

-chris

I don't know if it's still relevant, but at some point there was a problem with 
karabiner and LyX I think that caused crashes:

  https://www.lyx.org/trac/ticket/9992

Scott
http://lists.lyx.org/mailman/listinfo/lyx-users


I'm not on windows or mac but this is nice to know, could be helpful for others. Thanks!
--
Lorenzo
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users

Reply via email to