several bugfixes

[?]
May 21, 2022, 3:40 PM
F63Q4OV73CQC6WTWDCURANYMF2PM4TJCXWF3FZ25X4QY7ZTEZ6QAC

Dependencies

  • [2] WTDKUACN rectangle and square shapes
  • [3] RT6EV6OP delegate update events to drawings
  • [*] BJ5X5O4A let's prevent the text cursor from ever getting on a drawing
  • [*] FEEGTRGQ bugfix: duplicate character on enter
  • [*] BLWAYPKV extract a module
  • [*] NYQ7HD4D move
  • [*] HYEAFRZ2 split mouse_pressed events between Text and Drawing

Change contents

  • edit in manual_tests at line 14
    [5.326]
    [6.2]
    drawing
    draw a line, circle, rectangle, square, polygon
    select a point and move it
  • edit in drawing.lua at line 174
    [8.4352]
    [2.4014]
    elseif shape.mode == 'move' then
    -- nothing pending; changes are immediately committed
  • edit in drawing.lua at line 200
    [9.1671]
    [2.4186]
    elseif Current_drawing_mode == 'move' then
    -- all the action is in mouse_released
  • replacement in drawing.lua at line 232
    [2.4251][2.4251:4301]()
    print(Current_drawing_mode)
    assert(false)
    [2.4251]
    [3.1041]
    -- do nothing