The new CTools AJAX framework replacement of existing ahah #544418: Integrate CTools AJAX framework with Drupal to extend (and replace) existing ahah framework has special case javascript code to test for enter key:

+      // Detect enter key.
+      if (event.keyCode == 13) {
+        $(element_settings.element).trigger(element_settings.event);
+        return false;
+      }

In order for this to also work in iPhone, this need to also test for event.keyCode == 10 as iPhone Safari sends 10 for enter key.

CommentFileSizeAuthor
#2 ahah_550360.patch704 bytesdrewish

Comments

merlinofchaos’s picture

This exists in the current ahah.js as well. I just move that code in the patch.

drewish’s picture

Title: CTools AJAX framework need to also check of keyCode == 10 in addition to keyCode == 13 » AHAH framework needs to check for keyCode == 10 in addition to keyCode == 13
Status: Active » Needs review
StatusFileSize
new704 bytes

here's a patch.

Status: Needs review » Needs work

The last submitted patch failed testing.

nod_’s picture

Version: 7.x-dev » 8.x-dev

Still an issue? since ahah.js doesn't exist anymore where should that be?

nod_’s picture

Status: Needs work » Closed (won't fix)

Doesn't apply anymore.