diff --git a/build.sbt b/build.sbt index b7690ac2a..82b6e62d0 100644 --- a/build.sbt +++ b/build.sbt @@ -2,7 +2,7 @@ import play.PlayScala name := """sidewalk-webpage""" -version := "7.20.2" +version := "7.20.3" scalaVersion := "2.10.7" diff --git a/conf/evolutions/default/240.sql b/conf/evolutions/default/240.sql new file mode 100644 index 000000000..d5485f4d8 --- /dev/null +++ b/conf/evolutions/default/240.sql @@ -0,0 +1,5 @@ +# --- !Ups +INSERT INTO version VALUES ('7.20.3', now(), 'Fixes broken keyboard shortcuts in Validate.'); + +# --- !Downs +DELETE FROM version WHERE version_id = '7.20.3'; diff --git a/public/javascripts/SVValidate/src/keyboard/Keyboard.js b/public/javascripts/SVValidate/src/keyboard/Keyboard.js index 231657b94..1ae23e9a0 100644 --- a/public/javascripts/SVValidate/src/keyboard/Keyboard.js +++ b/public/javascripts/SVValidate/src/keyboard/Keyboard.js @@ -165,11 +165,21 @@ function Keyboard(menuUI) { menuUI.yesButton.removeClass("validate"); status.keyPressed = false; break; + // "a" key + case 65: + menuUI.yesButton.removeClass("validate"); + status.keyPressed = false; + break; // "n" key case 78: menuUI.noButton.removeClass("validate"); status.keyPressed = false; break; + // "d" key + case 68: + menuUI.noButton.removeClass("validate"); + status.keyPressed = false; + break; // "u" key case 85: menuUI.unsureButton.removeClass("validate");