On Saturday, April 21, 2018 at 2:20:03 PM UTC+2, Karsten Wolf wrote:
>
> After some digging I think that the keys2 branch is working as advertised;
>
>
I was wrong. It only kind of worked like advertised.
An accidental discovery was the doMacTweaks() method. It did not work in
keys2. It looked for the replacement char in the mapping keys.
Replacing "actual_ch" with "ch" made it work again.
Corrected version
diff --git a/leo/plugins/qt_events.py b/leo/plugins/qt_events.py
index 43e086f..0c1ccea 100644
--- a/leo/plugins/qt_events.py
+++ b/leo/plugins/qt_events.py
@@ -240,9 +240,9 @@ class LeoQtEventFilter(QtCore.QObject):
'e': '€',
'l': '@',
}
- if actual_ch.lower() in mac_d:
+ if ch.lower() in mac_d:
# Ignore the case.
- actual_ch = ch = g.toUnicode(mac_d.get(actual_ch.lower()))
+ actual_ch = ch = g.toUnicode(mac_d.get(ch.lower()))
mods = []
return actual_ch, ch, mods
#@+node:ekr.20110605121601.18544: *5* filter.qtKey
Now Leo in keys2 seems to work as I expect it. I'm going to work with that
patch and see what happens.
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.