When shadowbox login is enabled, if a username or password contains the 'q' character, the login box disappears as soon as 'q' is pressed in either the username or password text boxes. Clearly, 'q' must be an escape code for quit within the js libraries used for the login. Thinking that any control characters should be disabled in some fashion.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

manfer’s picture

Status: Active » Postponed

I would look for a way to disable it only on that login.

In the meanwhile shadowbox keys can be disabled for the whole site in shadowbox config page admin/config/media/shadowbox. In section Shadowbox Options there is a subsection called Input controls where you have a checkbox to enable/disable keys.

polskikrol’s picture

Not sure on how the integration with Shadowbox libraries works, but perhaps disable the control keys when the text box input for username and password is in focus?

manfer’s picture

Status: Postponed » Active
FileSize
393 bytes

Minor change needed. Here is the patch I'm going to push to solve this.

manfer’s picture

Status: Active » Fixed
polskikrol’s picture

Confirmed working.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit 740c88f on 7.x-4.x, 8.x-1.x by manfer:
    Issue #1480836 by manfer: disable keys on login modal.