[Bug 33064] Ctrl+left/right to jump by word does not work properly

2012-07-02 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=33064

James Forrester jforres...@wikimedia.org changed:

   What|Removed |Added

 Status|REOPENED|ASSIGNED
 CC||or...@framezero.com
  Component|VisualEditor|ContentEditable
 AssignedTo|wikibugs-l@lists.wikimedia. |i...@wikia-inc.com
   |org |
Product|MediaWiki extensions|VisualEditor

--- Comment #14 from James Forrester jforres...@wikimedia.org 2012-07-02 
19:17:30 UTC ---
Re-assigning.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 33064] Ctrl+left/right to jump by word does not work properly

2012-06-22 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=33064

Nikola Smolenski smole...@eunet.rs changed:

   What|Removed |Added

 CC||smole...@eunet.rs

--- Comment #10 from Nikola Smolenski smole...@eunet.rs 2012-06-22 06:40:41 
UTC ---
Here's how it is for me (also some related issues):

- Ctrl + ← or Ctrl + → only moves the cursor for one character.

- Ctrl + Shift + ← or Ctrl + Shift + → works.

- Ctrl + ↑ or Ctrl + ↓ only moves the cursor for one line (it should move it
for the entire paragraph).

- Ctrl + Shift + ↑ or Ctrl + Shift + ↓ also doesn't work (it should move it for
the entire paragraph and select the text).

- Home works.

- End doesn't work, instead of to the end of the line, it moves the cursor to
the beginning of the next line (you need a paragraph with more than one line to
see this).

- Shift + Home, Shift + End works.

- Ctrl + Home, Ctrl + End, Ctrl + Shift + Home, Ctrl + Shift + End work.

- It happened to me a few times that the cursor just jumps at the end of the
text, once while pressing End and a few times when pressing ↓.

- Empty paragraphs behave weirdly: it is possible to make them, but they are
not saved. Occasionally it is not possible to move cursor into them, neither by
mouse nor by arrows.

- When I select the text, the selection is lost if I right-click outside of the
selection. This is not how the browser behaves.

- When I saved the page, I see edits that are not by me () See
https://www.mediawiki.org/w/index.php?title=VisualEditor:Testdiff=553093oldid=553092
- TEst and adit are not by me, and I haven't deleted confirmed, that it also
works with webkit on ios :-)  line. Probably a non-handled edit conflict.

Firefox 11.0 on Ubuntu 10.10.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 33064] Ctrl+left/right to jump by word does not work properly

2012-06-22 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=33064

--- Comment #11 from Nikola Smolenski smole...@eunet.rs 2012-06-22 06:47:26 
UTC ---
Very weird:

1. Make a new blank paragraph.

2. Press Ctrl + ` (this is how I switch keyboard layout on one of my
computers).

3. Press Alt + Shift twice to change the keyboard layout to Serbian.

4. Press ш.

ш appears at the cursor. A new paragraph is created above the current
paragraph. ш also appear at the new paragraph, but is overwritten with the next
letter I type. Doesn't happen every time, but I managed to trigger it multiple
times.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 33064] Ctrl+left/right to jump by word does not work properly

2012-06-22 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=33064

James Forrester jforres...@wikimedia.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||jforres...@wikimedia.org
 Resolution||FIXED

--- Comment #12 from James Forrester jforres...@wikimedia.org 2012-06-22 
17:31:50 UTC ---
Fixed in new version of VE.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 33064] Ctrl+left/right to jump by word does not work properly

2012-06-22 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=33064

Bug 33064 depends on bug 33128, which changed state.

Bug 33128 Summary: Ctrl+left/right arrow doesn't work correctly with non-Latin 
scripts
https://bugzilla.wikimedia.org/show_bug.cgi?id=33128

   What|Old Value   |New Value

 Status|NEW |RESOLVED
 Resolution||FIXED

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 33064] Ctrl+left/right to jump by word does not work properly

2012-06-22 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=33064

mybugs.m...@gmail.com changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |

--- Comment #13 from mybugs.m...@gmail.com 2012-06-22 23:12:19 UTC ---
(In reply to comment #9)
 From
 https://www.mediawiki.org/w/index.php?title=Visual_editor/Feedbackoldid=552919#CTRL.2BLeft_arrow_doesn.27t_work_as_expected
 
 I was trying to use CTRL+Left arrow to move the cursor to the left, but it 
 only
 moves one character at time (instead of one word at time).
 Curiously, it works fine for selection (i.e. CTRL+SHIFT+Left arrow).
 The right arrow behaves the same way as the left one.
 
For the record, this test was done using Firefox 9.0.1 on Windows XP, but the
same problem happens on Ubuntu 12.04 using either Chrome 19.0.1084.56 or
Firefox 13.0.1.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 33064] Ctrl+left/right to jump by word does not work properly

2012-06-21 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=33064

mybugs.m...@gmail.com changed:

   What|Removed |Added

 CC||mybugs.m...@gmail.com

--- Comment #9 from mybugs.m...@gmail.com 2012-06-22 02:10:09 UTC ---
From
https://www.mediawiki.org/w/index.php?title=Visual_editor/Feedbackoldid=552919#CTRL.2BLeft_arrow_doesn.27t_work_as_expected

I was trying to use CTRL+Left arrow to move the cursor to the left, but it only
moves one character at time (instead of one word at time).
Curiously, it works fine for selection (i.e. CTRL+SHIFT+Left arrow).
The right arrow behaves the same way as the left one.



For the record, here is what I get on Ubuntu 12.04, using gedit 3.4.1 for the
examples from comment 7 (I inserted a | on each place the cursor stops when
going to each direction):

Forwards:
|a|!b| a|@b| a|#b| a|%b|  a|b| a|*b| a|(b| a|)b| a|-b| a|{b| a|}b| a|[b| a|]b|
a|\b| a|;b| a|b| a|,b| a|?b| a|/b|

|a|$b| a|^b| a|+b| a|=b| a||b| a|b| a|b|

|a|_b| a|:b| a|'b| a|.b|

Backwards:
|a!|b |a@|b |a#|b |a%|b  |a|b |a*|b |a(|b |a)|b |a-|b |a{|b |a}|b |a[|b |a]|b
|a\|b |a;|b |a|b |a,|b |a?|b |a/|b|

|a$|b |a^|b |a+|b |a=|b |a||b |a|b |a|b|

|a_|b |a:|b |a'|b |a.|b|

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 33064] Ctrl+left/right to jump by word does not work properly

2012-02-07 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=33064

--- Comment #6 from Trevor Parscal tpars...@wikimedia.org 2012-02-07 19:12:50 
UTC ---
This patch works, but is still incomplete because it doesn't handle punctuation
properly.

On a Mac, using option+left/right yields the following results:

Forwards:
  |This.is.a.test of how.things work. if, there-is punctuation.
  This.is.a.test| of how.things work. if, there-is punctuation.
  This.is.a.test of| how.things work. if, there-is punctuation.
  This.is.a.test of how.things| work. if, there-is punctuation.
  This.is.a.test of how.things work|. if, there-is punctuation.
  This.is.a.test of how.things work. |if, there-is punctuation.
  This.is.a.test of how.things work. if|, there-is punctuation.
  This.is.a.test of how.things work. if, there|-is punctuation.
  This.is.a.test of how.things work. if, there-is| punctuation.
  This.is.a.test of how.things work. if, there-is punctuation|.
  This.is.a.test of how.things work. if, there-is punctuation.|

Backwards:
  This.is.a.test of how.things work. if, there-is punctuation.|
  This.is.a.test of how.things work. if, there-is |punctuation.
  This.is.a.test of how.things work. if, there-|is punctuation.
  This.is.a.test of how.things work. if, |there-is punctuation.
  This.is.a.test of how.things work. |if, there-is punctuation.
  This.is.a.test of how.things |work. if, there-is punctuation.
  This.is.a.test of |how.things work. if, there-is punctuation.
  This.is.a.test |of how.things work. if, there-is punctuation.
  |This.is.a.test of how.things work. if, there-is punctuation.

It's important to note that hyphens (-) are treated as whitespace. Thus the
following two lines will behave identically forwards and backwards.

a -b c- d-e f
a  b c  d e f

The logic appears to be something like this:
* Ignore leading punctuation or whitespace
* Advance to the end of the next word (series of contiguous non punctuation or
whitespace characters)

If the patch is updated to follow that logic, that should work well on Mac, but
may still not work correctly on other platforms. This is because, as mentioned,
moving the cursor by word may differ on Windows or Linux, and we should
probably aim to provide a consistent experience on each platform.

If someone can analyze the behavior of other platforms that would be useful.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 33064] Ctrl+left/right to jump by word does not work properly

2012-02-07 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=33064

--- Comment #7 from Trevor Parscal tpars...@wikimedia.org 2012-02-07 19:24:28 
UTC ---
Also, please note in the examples above, there are three classes of punctuation
which seem to behave differently.

1. Treated as punctuation and skipped over like whitespace:
a!b a@b a#b a%b  ab a*b a(b a)b a-b a{b a}b a[b a]b a\b a;b ab a,b a?b a/b

2. Treated as words of their own:
a$b a^b a+b a=b a|b ab ab

3. Treated as part of the word:
a_b a:b a'b a.b

This might also vary from platform to platform.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 33064] Ctrl+left/right to jump by word does not work properly

2012-02-07 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=33064

Sumana Harihareswara suma...@panix.com changed:

   What|Removed |Added

   Keywords|need-review |reviewed

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 33064] Ctrl+left/right to jump by word does not work properly

2012-02-07 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=33064

--- Comment #8 from Trevor Parscal tpars...@wikimedia.org 2012-02-07 19:33:01 
UTC ---
Also, if you can put together a patch that does this correctly, perhaps some
documentation on the wiki about the different cursor movement rules for each
platform would be awesome.

This is a great project for someone getting into VE work, and we would really
appreciate some help in these areas where the details are important but we are
mostly busy forging ahead with missing functionality.

Thanks for the patch so far, I look forward to getting this working properly.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 33064] Ctrl+left/right to jump by word does not work properly

2012-01-27 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=33064

Liangent liang...@gmail.com changed:

   What|Removed |Added

 CC||liang...@gmail.com

--- Comment #5 from Liangent liang...@gmail.com 2012-01-27 14:38:04 UTC ---
*** Bug 33146 has been marked as a duplicate of this bug. ***

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 33064] Ctrl+left/right to jump by word does not work properly

2012-01-26 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=33064

--- Comment #3 from Ashish Dubey ashish.dube...@gmail.com 2012-01-26 14:55:47 
UTC ---
Created attachment 9910
  -- https://bugzilla.wikimedia.org/attachment.cgi?id=9910
This implementation fixes the bug for me.

I made a small tweak in es.SurfaceView.js which gives me the expected result as
mentioned above.
Awaits review.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 33064] Ctrl+left/right to jump by word does not work properly

2012-01-26 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=33064

Sumana Harihareswara suma...@panix.com changed:

   What|Removed |Added

   Keywords||need-review, patch
 CC||suma...@panix.com

--- Comment #4 from Sumana Harihareswara suma...@panix.com 2012-01-26 
21:54:56 UTC ---
Ashish, thank you for the patch.  I have added the keywords patch and
need-review to indicate that this bug has a patch that needs to be reviewed. 
Next time, you can do this yourself when you attach the patch, to save time.

Trevor, maybe you could take a look at this?

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 33064] Ctrl+left/right to jump by word does not work properly

2011-12-15 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=33064

Mark A. Hershberger m...@everybody.org changed:

   What|Removed |Added

   Priority|Unprioritized   |Normal
 CC||m...@everybody.org

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 33064] Ctrl+left/right to jump by word does not work properly

2011-12-14 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=33064

Amir E. Aharoni amir.ahar...@mail.huji.ac.il changed:

   What|Removed |Added

 CC||amir.ahar...@mail.huji.ac.i
   ||l
Summary|Ctrl+left/right does not|Ctrl+left/right to jump by
   |work properly   |word does not work properly

--- Comment #1 from Amir E. Aharoni amir.ahar...@mail.huji.ac.il 2011-12-14 
19:37:51 UTC ---
More precisely, the caret visits every word twice - at the beginning and at the
end:
Lorem| ipsum dolor sit amet
Lorem |ipsum dolor sit amet
Lorem ipsum| dolor sit amet
Lorem ipsum |dolor sit amet
Lorem ipsum dolor| sit amet
Lorem ipsum dolor |sit amet
Lorem ipsum dolor sit| amet
Lorem ipsum dolor sit |amet
Lorem ipsum dolor sit amet|

And i would expect something like:
Lorem| ipsum dolor sit amet
Lorem |ipsum dolor sit amet
Lorem ipsum |dolor sit amet
Lorem ipsum dolor |sit amet
Lorem ipsum dolor sit |amet

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 33064] Ctrl+left/right to jump by word does not work properly

2011-12-14 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=33064

--- Comment #2 from Amir E. Aharoni amir.ahar...@mail.huji.ac.il 2011-12-14 
19:39:31 UTC ---
Another consideration:

I'm not a Mac person, but AFAIK Ctrl-←/→ on OS X does something like Home/End -
jumps to the beginning/end of the line. So for Mac users this should emulate
their OS' behavior.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 33064] Ctrl+left/right to jump by word does not work properly

2011-12-14 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=33064

Amir E. Aharoni amir.ahar...@mail.huji.ac.il changed:

   What|Removed |Added

 Depends on||33128

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l