Question: My crystal report display not in correct format when I allow one field of it to "Can Grow".

Before allow "Can Grow" :

[![enter image description here](https://i.stack.imgur.com/hLNn7.png)](https://i.stack.imgur.com/hLNn7.png)

After Allow :

[![enter image description here](https://i.stack.imgur.com/eu0tv.png)](https://i.stack.imgur.com/eu0tv.png)

So how to solve the problem?

Here is what I have set :

[![enter image description here](https://i.stack.imgur.com/RTUXg.png)](https://i.stack.imgur.com/RTUXg.png)

Last edit:

[![enter image description here](https://i.stack.imgur.com/JAHyB.png)](https://i.stack.imgur.com/JAHyB.png)

Answer: 
You can use mousetrap.

```js
function GoToLocation(url)
  {
    window.location = url;
  }
  Mousetrap.bind("right", function() {
document.getElementById('next-image').click();
  });
```

```html
<script src="https://craig.global.ssl.fastly.net/js/rainbow-custom.min.js?39e99"></script>
<script src="https://craig.global.ssl.fastly.net/js/mousetrap/mousetrap.js?bc893"></script>

<div class="image-wrap"><a id="next-image" class="ajax-load-next" href="http://linktopage.com/2/"><img src="blah1.jpg" alt=""/></a></div><!--nextpage-->
<div class="image-wrap"><a id="next-image" class="ajax-load-next" href="http://linktopage.com/3/"><img src="blahab.jpg" alt=""/></a></div><!--nextpage-->
<div class="image-wrap"><a id="next-image" class="ajax-load-next" href="http://linktopage.com/4/"><img src="blahco.jpg" alt=""/></a></div><!--nextpage-->
<div class="image-wrap"><a id="next-image" class="ajax-load-next" href="http://linktopage.com/5/"><img src="blahneat.jpg" alt=""/></a></div>
```

if you are use attachment.php or image.php based gallery. you can also use this : [Wordpress Attachment Page Navigate with Keyboard](https://stackoverflow.com/questions/39082930/wordpress-attachment-page-navigate-with-keyboard)
You need to bind a handler to the document `keyup` event, and test the key code for the event. A handy reference to key codes: <https://css-tricks.com/snippets/javascript/javascript-keycodes/>

Below is an example. When you run it, click in the output panel to give it focus before testing the keys. 

```js
var selectedIndex = 0;

var elements = $('.navigable').toArray();
var maxElements = elements.length;

function nextSelection() {
  selectedIndex++;
  if(selectedIndex >= maxElements) {
    selectedIndex = 0;
  }
  selectElement();
}

function prevSelection() {
  selectedIndex--;
  if(selectedIndex < 0) {
    selectedIndex = maxElements - 1;
  }
  selectElement();
}

function selectElement() {
  $('.navigable').removeClass('selected');
  $(elements[selectedIndex]).addClass('selected');
}

handleKeyUp = function(ev) {
  if(ev.keyCode == 37) { // left arrow key
    prevSelection();
  } 
  if(ev.keyCode == 39) { // right arrow key
    nextSelection();
  } 
  if(ev.keyCode == 27) { // escape key
    $(document).off('keyup', handleKeyUp);
  }   
}

$(document).on('keyup', handleKeyUp);
selectElement();
```

```css
div {
  padding: 30px;
  margin: 10px;
  border: 1px solid #aaa;
  background: #fee;
  display: inline-block;
}

div.selected {
  background: #faa;
}
```

```html
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="navigable">1</div>
<div class="navigable">2</div>
<div class="navigable">3</div>
<br>
<br>
<p> Click in this panel to give it focus.  Use arrow keys to navigate between divs.  Press `ESC` to disable `keyup` handler.</p>
```