From 64c189f0efecd5fc7b6462857e1978b6dc1a9f66 Mon Sep 17 00:00:00 2001 From: Igor Timofeev Date: Sat, 5 Sep 2015 11:31:20 +0300 Subject: [PATCH] Update event.lua --- lib/event.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/event.lua b/lib/event.lua index b2160b17..b3a642df 100644 --- a/lib/event.lua +++ b/lib/event.lua @@ -228,11 +228,11 @@ function event.shouldSoftInterrupt() end function event.takeScreenshot() - if keyboard.isControlDown() and keyboard.isShiftDown() and keyboard.isKeyDown(keyboard.keys["1"]) then + if keyboard.isKeyDown(100) then + computer.beep(200) + image.screenshot("screenshot.png") + computer.beep(500) computer.beep(500) - image.screenshot("screenshot.jpg") - computer.beep(1200) - computer.beep(1200) end end