about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-05-30 15:30:34 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-05-30 15:34:01 -0700
commit714f7d11cd381ef371e4cdde002e548f4189ee7f (patch)
tree443a4c242386bd57be5cf080dfc66952e49719d1
parent3414f0a11ddaa7a04be9a7128ba6a7f352b7e24e (diff)
downloadview.love-714f7d11cd381ef371e4cdde002e548f4189ee7f.tar.gz
experiment: give up on changing shape mode
I often find myself accidentally hovering over some shape or other when
switching modes.

One additional reason to do this: I never included it in the help. So it
hasn't been very high-priority.
-rw-r--r--drawing.lua10
1 files changed, 1 insertions, 9 deletions
diff --git a/drawing.lua b/drawing.lua
index 3e2db42..417b5a0 100644
--- a/drawing.lua
+++ b/drawing.lua
@@ -454,12 +454,8 @@ function Drawing.keychord_pressed(chord)
       drawing.pending.p1 = drawing.pending.vertices[1]
     end
     drawing.pending.mode = 'line'
-  elseif chord == 'C-l' then
+  elseif chord == 'C-l' and not love.mouse.isDown('1') then
     Current_drawing_mode = 'line'
-    local drawing,_,shape = Drawing.select_shape_at_mouse()
-    if drawing then
-      Drawing.convert_line(drawing, shape)
-    end
   elseif love.mouse.isDown('1') and chord == 'm' then
     Current_drawing_mode = 'manhattan'
     local drawing = Drawing.select_drawing_at_mouse()
@@ -475,10 +471,6 @@ function Drawing.keychord_pressed(chord)
     drawing.pending.mode = 'manhattan'
   elseif chord == 'C-m' and not love.mouse.isDown('1') then
     Current_drawing_mode = 'manhattan'
-    local drawing,_,shape = Drawing.select_shape_at_mouse()
-    if drawing then
-      Drawing.convert_horvert(drawing, shape)
-    end
   elseif chord == 'C-s' and not love.mouse.isDown('1') then
     local drawing,_,shape = Drawing.select_shape_at_mouse()
     if drawing then
29 +0100 committer hut <hut@lavabit.com> 2009-11-27 17:57:29 +0100 scrolling & stuff' href='/akspecs/ranger/commit/ranger/fm.py?h=v1.4.3&id=dd7a4f636fcc3c68b061d5af265aeaf38f70e45b'>dd7a4f63 ^
3ea48208 ^




dd7a4f63 ^
419e4aa5 ^




dd7a4f63 ^


3d566884 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68