You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2017/10/20 22:28:49 UTC

[whimsy] branch master updated: ignore keystroke if altKey is pressed

This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new fc008b3  ignore keystroke if altKey is pressed
fc008b3 is described below

commit fc008b3ba5d21eb3900351669cb7aa38a54fb373
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Fri Oct 20 18:28:25 2017 -0400

    ignore keystroke if altKey is pressed
---
 www/board/agenda/views/keyboard.js.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/www/board/agenda/views/keyboard.js.rb b/www/board/agenda/views/keyboard.js.rb
index c388b56..ecdff85 100644
--- a/www/board/agenda/views/keyboard.js.rb
+++ b/www/board/agenda/views/keyboard.js.rb
@@ -7,10 +7,10 @@ class Keyboard
 
     # keyboard navigation (unless on the search screen)
     def (document.body).onkeydown(event)
-      return if document.getElementById('search-text') or
+      return if event.metaKey or event.ctrlKey or event.altKey or
+        document.getElementById('search-text') or
         document.querySelector('.modal.in') or
         %w(input textarea).include? document.activeElement.tagName.downcase()
-      return if event.metaKey or event.ctrlKey
 
       if event.keyCode == 37 # '<-'
         link = document.querySelector("a[rel=prev]")

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].