https://bugzilla.wikimedia.org/show_bug.cgi?id=67367

            Bug ID: 67367
           Summary: VisualEditor: Pawning prevention code in ve.ce.Surface
                    sometimes prevent legit keypresses from being handled
                    (e.g. typing "ą” in Polish)
           Product: VisualEditor
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: ContentEditable
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
       Web browser: ---
   Mobile Platform: ---

Writing https://gerrit.wikimedia.org/r/143322 , I realized that the
`ve.ce.isShortcutKey( e )` check in ve.ce.Surface (which rejects every keypress
event where Ctrl or Cmd is pressed) sometimes prevent legit keypresses from
being handled.

To reproduce (in any browser):

* Place cursor on an empty line.
* Input 'ą' ([[ą]]). This is accomplished by pressing AltGr+a (right Alt+a,
Alt+Ctrl+a) when using the "Polish (Programmers)" keyboard layout on Windows 7
(this is the default layout for Polish).
* Type in something else. The 'ą' disappears, because it was never handled by
ve.ce, only by native contenteditable element.

I only tested this on Windows 7, but I believe other operating systems all use
the same method. Other letters with diacritics from the [[Polish alphabet]] are
input in the same way (AltGr + base key), we have nine of them.

On Windows 7 you can enable this keyboard layout by typing "keyboard layout"
into the Start menu, choosing "Change keyboards…" and adding the input method.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to