about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-07-05 10:09:13 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-07-05 10:09:51 -0700
commit3197bb57391427cc7823d813d02bf2b6e311c0e1 (patch)
tree5f7115d7b269b80954b00c3685f4f142f64682ec
parent18aa21d0c0f0c6b703835e7b6664344ff2e68ec0 (diff)
downloadview.love-3197bb57391427cc7823d813d02bf2b6e311c0e1.tar.gz
what should happen to selection while drawing?
First idea: just leave it alone. Let's see how this works.
-rw-r--r--main.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.lua b/main.lua
index 4f6fd00..b166ac4 100644
--- a/main.lua
+++ b/main.lua
@@ -420,6 +420,7 @@ end
 
 function App.keychord_pressed(chord, key)
   if Selection1.line and
+      not Lines.current_drawing and
       -- printable character created using shift key => delete selection
       -- (we're not creating any ctrl-shift- or alt-shift- combinations using regular/printable keys)
       (not App.shift_down() or utf8.len(key) == 1) and