Last modified: 2014-10-22 01:13:47 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T69367, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 67367 - VisualEditor: Pawning prevention code in ve.ce.Surface sometimes prevents some legit keypresses from being handled (e.g. typing “ą” in Polish on a new line)
VisualEditor: Pawning prevention code in ve.ce.Surface sometimes prevents som...
Status: ASSIGNED
Product: VisualEditor
Classification: Unclassified
Language (Other open bugs)
unspecified
All All
: High normal
: ---
Assigned To: D Chan
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-01 14:55 UTC by Bartosz Dziewoński
Modified: 2014-10-22 01:13 UTC (History)
8 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Bartosz Dziewoński 2014-07-01 14:55:19 UTC
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.
Comment 1 James Forrester 2014-10-14 23:32:52 UTC
Is this now fixed, given that we've killed pawns?
Comment 2 Roan Kattouw 2014-10-14 23:33:48 UTC
(In reply to James Forrester from comment #1)
> Is this now fixed, given that we've killed pawns?

We haven't quite killed them yet, the chimera commit does that.
Comment 3 Roan Kattouw 2014-10-14 23:34:13 UTC
(In reply to Roan Kattouw from comment #2)
> (In reply to James Forrester from comment #1)
> > Is this now fixed, given that we've killed pawns?
> 
> We haven't quite killed them yet, the chimera commit does that.

But we should make sure that that commit also kills this logic; which right now I'm not sure that it does.
Comment 4 Bartosz Dziewoński 2014-10-19 19:21:00 UTC
I can still reproduce on betalabs.
Comment 5 Roan Kattouw 2014-10-22 01:13:47 UTC
Hmph, we can't kill this code yet. It's not just to prevent pawning, it's also to prevent the selection from being deleted when you press a shortcut key. We'll need David's next project (prepare-observe-fixup) to be done before we can get rid of this, I think.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links