Comment #36 on issue 9842 by [email protected]: Pressing Ctrl while Shift-Left breaking cursor position http://code.google.com/p/chromium/issues/detail?id=9842
hmm....... I can always get a consistent behavior for Chrome. But let me update my Chrome to be the latest and try again. I think the problem is that webkit/Chrome handles textarea and div differently. I attached a test case here. For a textarea (email body in gmail's plaintext mode is a textarea), shift-ctrl does not change the original selection's (base, extent). But for a 'div' (each paragraph of Gmail's rich formatting is a div), shift-ctrl reset original selection's (base, extent) to be (start, end). (base, extent) means the position of 'first' and 'last' click. (start, end) means the leftmost and rightmost position of the range. In the case of you selected 'two' from 'o' to 't' (even using keyboard) in the line "one two three", (base, extent) is (7, 4), (start,end) is (4, 7), after ctrl-right-shift, for 'div', (base, extend) changed to (4, 7), shift-left-arrow will continue to select space (which is the next-char after position 7) between 'two' and 'three'. For textarea, (base, extent) stays as (7, 4) even after ctrl-right-shift, shift-left-arrow will un-select 't' which is the next-char after position 4. I have not figure out the root cause of the different handling yet. progame, could you please try the simple test case I attached? and see whether you get consistent behavior in Chrome? BTW, I could not get right behavior using the attached case in FF3.1b8, I think the selection there is wrong after change text directionality. But I can get a consistent behavior in FF release version and IE, both handle textarea and div the same. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ Automated mail from issue updates at http://crbug.com/ Subscription options: http://groups.google.com/group/chromium-bugs -~----------~----~----~----~------~----~------~--~---
