Fixed zooming in with plus sign.

This commit is contained in:
Sebastian Öberg 2015-11-04 11:00:08 +01:00
parent 9fa3136e78
commit 6b098c1c2b

View File

@ -2293,6 +2293,7 @@ function onCanvasKeyDown( event ) {
function onCanvasKeyPress( event ) { function onCanvasKeyPress( event ) {
if ( !event.preventDefaultAction && !event.ctrl && !event.alt && !event.meta ) { if ( !event.preventDefaultAction && !event.ctrl && !event.alt && !event.meta ) {
switch( event.keyCode ){ switch( event.keyCode ){
case 43://=|+
case 61://=|+ case 61://=|+
this.viewport.zoomBy(1.1); this.viewport.zoomBy(1.1);
this.viewport.applyConstraints(); this.viewport.applyConstraints();