paste in text with M-v

[?]
May 27, 2022, 3:40 AM
G6OYAYHUSMSPKLRW52LQDAF4NBHFPWY3GZAHZZDLJY2ZL6NLTNEQC

Dependencies

  • [2] 2HW3HUCG M-left/M-right for word-based motions
  • [*] BULPIBEG beginnings of a module for the text editor
  • [*] XNFTJHC4 split keyboard handling between Text and Drawing
  • [*] 2ZYV7D3W handle tab characters
  • [*] 6LJZN727 handle chords

Change contents

  • edit in text.lua at line 742
    [5.113]
    [6.1]
    if App.modifier_down() then return end
    local down = love.keyboard.isDown
  • edit in text.lua at line 798
    [2.725]
    [2.725]
    end
    -- paste
    elseif chord == 'M-v' then
    local s = love.system.getClipboardText()
    for _,code in utf8.codes(s) do
    Text.insert_at_cursor(utf8.char(code))
  • edit in keychord.lua at line 26
    [7.1195]
    function App.modifier_down()
    local down = love.keyboard.isDown
    return down('lctrl') or down('rctrl') or down('lalt') or down('ralt') or down('lgui') or down('rgui')
    end