about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-06-02 23:55:17 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-06-02 23:55:17 -0700
commit03499f7449e607e20bee81ba42213e39e308dfff (patch)
treee59fcdee069a2f4f457c40ce55ce3c25f6f8c8ab
parent8047ab9b89c40395a1608d3f517892cac8087e99 (diff)
downloadview.love-03499f7449e607e20bee81ba42213e39e308dfff.tar.gz
switch freehand hotkey to eliminate conflict with search
I'm now following Inkscape, and the mnemonic is 'pencil'.
-rw-r--r--drawing.lua2
-rw-r--r--help.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/drawing.lua b/drawing.lua
index a2da9c4..4c5d76b 100644
--- a/drawing.lua
+++ b/drawing.lua
@@ -355,7 +355,7 @@ function Drawing.mouse_released(x,y, button)
 end
 
 function Drawing.keychord_pressed(chord)
-  if chord == 'C-f' and not love.mouse.isDown('1') then
+  if chord == 'C-p' and not love.mouse.isDown('1') then
     Current_drawing_mode = 'freehand'
   elseif chord == 'C-g' and not love.mouse.isDown('1') then
     Current_drawing_mode = 'polygon'
diff --git a/help.lua b/help.lua
index e80c823..e55973e 100644
--- a/help.lua
+++ b/help.lua
@@ -17,7 +17,7 @@ function draw_help_without_mouse_pressed(drawing)
   y = y + Line_height
   y = y + Line_height
   if Current_drawing_mode ~= 'freehand' then
-    love.graphics.print("* Press 'ctrl+f' to switch to drawing freehand strokes", 16+30,y)
+    love.graphics.print("* Press 'ctrl+p' to switch to drawing freehand strokes", 16+30,y)
     y = y + Line_height
   end
   if Current_drawing_mode ~= 'line' then