Skip to content

Commit

Permalink
bugfix for not being able to use the space key in editable HTML eleme…
Browse files Browse the repository at this point in the history
…nts inside modal dialogs
  • Loading branch information
darkv committed Apr 16, 2012
1 parent 1735060 commit 851f2f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Frameworks/Ajax/Ajax/WebServerResources/modalbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,8 @@ Modalbox.Methods = {
// CH: done

_preventScroll: function(event) { // Disabling scrolling by "space" key
if (!["input", "textarea", "select", "button"].include(event.element().tagName.toLowerCase()))
if (!["input", "textarea", "select", "button"].include(event.element().tagName.toLowerCase())
&& event.element().contentEditable != 'true')
event.stop();
},

Expand Down

0 comments on commit 851f2f0

Please sign in to comment.