Skip to content
Discussion options

You must be logged in to vote

This method create the keybind when the window is active and removes when its not

local xournal_binds_active = false

local function apply_xournal_binds()
    if not xournal_binds_active then
        hl.bind("F13", hl.dsp.send_shortcut({
            mods = "CTRL",
            key = "Z",
            window = "class:^(com.github.xournalpp.xournalpp)$"
        }))
        
        hl.bind("F14", hl.dsp.send_shortcut({
            mods = "CTRL",
            key = "Y",
            window = "class:^(com.github.xournalpp.xournalpp)$"
        }))
        
        xournal_binds_active = true
    end
end

local function remove_xournal_binds()
    if xournal_binds_active then
        hl.exec_cmd("hy…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Abdisto
Comment options

@Abdisto
Comment options

@Abdisto
Comment options

@Hy4ri
Comment options

@Abdisto
Comment options

Answer selected by Abdisto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants