Before, I didn't need to press the "Shout" button to submit my message, it worked when i pressed Enter key.

Now I have to press Shout button, Enter key has no effect. (since 7.x-1.0-beta1 is on)

How can I change that ?

Comments

vitalblue’s picture

Hi,
I will fix that during the week and release an update too.

Kind Regards

Tourista’s picture

Do you have news about the update ? I've installed the last dev ( 2015-Aug-06 ) and messages are not sent when I press Enter.

vitalblue’s picture

I wil check that and have an answer till the next week

ArTii94’s picture

shoutbox.module

Find this:

  // The submit button.
  if($bAjaxSubmitEnable)
  {
    $form['wrapper']['nick_submit_area']['submit'] = array(
      '#type' => 'submit',
      '#value' => t(DEFAULTSHOUTSINGULAR_CC),
      '#ajax' => array(
        'callback' => '_handle_form_submit',
        'effect' => 'fade',
        'progress' => array('message' => NULL, 'type' => 'throbber'),
      ),
    );
  }

And replace with this

  // The submit button.
  if($bAjaxSubmitEnable)
  {
    $form['wrapper']['nick_submit_area']['submit'] = array(
      '#type' => 'submit',
      '#value' => t(DEFAULTSHOUTSINGULAR_CC),
      '#ajax' => array(
        'callback' => '_handle_form_submit',
        'effect' => 'fade',
        'progress' => array('message' => NULL, 'type' => 'throbber'),
        'event' => 'click',
      ),
    );
  }
vitalblue’s picture

fix applied

thanks a lot

vitalblue’s picture

Status: Active » Closed (fixed)