Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#3 | shadowbox-disable_keys_on_login_modal-1480836-3.patch | 393 bytes | manfer |
Comments
Comment #1
manfer CreditAttribution: manfer commentedI 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.
Comment #2
polskikrol CreditAttribution: polskikrol commentedNot 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?
Comment #3
manfer CreditAttribution: manfer commentedMinor change needed. Here is the patch I'm going to push to solve this.
Comment #4
manfer CreditAttribution: manfer commentedComment #5
polskikrol CreditAttribution: polskikrol commentedConfirmed working.