|
Hello! I'm trying to understand how I went through the following help sections:
I tested some mappings using Based on my understanding, it seems that every special character returned by the expression (e.g., I was surprised to see that this also works: However, if I define this function: and update the mapping: , then thee mapping does not work (i.e., it inserts the , then the mapping works again. I was not able to find anywhere in the documentation why I don't have to use double-quotes and backslashes when I inline the expression into the mapping, but I have to if the expression is returned by a function. Programmatically, they should be equivalent. Am I missing something? Is this simplified inlined expression mapping inteded behavior, and can I rely on it in my config? Any thoughts to help me understand how this works would be greatly appreciated! |
Replies: 1 comment 5 replies
|
Try changing |
In your first two cases in the original post, the translation of the keycodes happens before the evaluation of the expression. The actual evaluated expression contains the raw keycodes.