Default laptop key set to capslock. Keys that can be set to fenrir key or script key selectable via checkbox.

This commit is contained in:
Storm Dragon committed 2026-10-29 18:01:42 -04:00
1 parent 47f18fdd28
commit 15e04aa8f8
47 files changed
+1560 -351

No files matched your search

+5 -2
View File
@@ -76,7 +76,10 @@ type Session struct {
exited chan struct{}
closed bool
eof bool
lastReplay struct {
capsRestore, capsConsumed bool
lastReplay struct {
code int
time uint64
}
@@ -132,7 +135,7 @@ func open_session(inputFile, outputFile *os.File, window uint64, child *exec.Cmd
return nil, fmt.Errorf("open X11 terminal or acquire its keys (error %d); check DISPLAY, WINDOWID and competing grabs", xError)
}
var scriptKeys []C.int
for _, key := range router.Script_keys() {
for _, key := range append(router.Reader_keys(), router.Script_keys()...) {
scriptKeys = append(scriptKeys, C.int(key))
}
if len(scriptKeys) > 0 {