Closed Bug 232063 Opened 21 years ago Closed 14 years ago

Shortcuts for Text Viewing, Navigation, and Selection

Categories

(SeaMonkey :: Help Documentation, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
seamonkey2.1b2

People

(Reporter: danielwang, Assigned: rpmdisguise-nave)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 5 obsolete files)

follow up on bug 224196 add one sub-section under Mozilla General Shortcuts Text Viewing, Navigation, and Selection The following are keyboard commands for navigating and modifying text in a text input field (e.g. the Location Bar). Some commands also apply to Web pages in caret browsing mode. *Caret browsing*: You can use a caret (the blinking <blink>|</blink>) to navigate any Web page, mail message, or this Help window. To activate *caret browsing*, press F7. *Terminology*: A "word" means any text terminated by spaces, symbols, and/or line feeds. For example, in <tt>www.google.com/search?q=mozilla</tt>, www. , google. , com/ , search? , q= , and mozilla are all words. This distinction allow the user to navigate text more easily. Move cursor to next word Ctrl+Right Cmd+Right Ctrl+Right Move cursor to previous word Ctrl+Left Cmd+Left Ctrl+Left Move to begining of the line Home Cmd+Left Arrow Ctrl+A Move to end of line End Cmd+Right Arrow Ctrl+E Move to begining of the text Ctrl+Home Move to end of the text Ctrl+End Select next character Shift+Right Shift+Right Shift+Right Select previous character Shift+Left Shift+Left Shift+Left Select next word Ctrl+Shift+Right Cmd+Shift+Right Ctrl+Shift+Right Select previous word Ctrl+Shift+Left Cmd+Shift+Left Ctrl+Shift+Left Select all text Ctrl+A Cmd+A Alt+A Delete next word Ctrl+Del ?? Ctrl+Del Delete previous word Ctrl+Bksp Alt+Bksp Ctrl+Bksp Move to begining of the line, and Move to end of line needs to be removed from general Mozilla shortcuts
Blocks: 232066
sounds good! Patch coming soon.
Status: NEW → ASSIGNED
Attached patch Patch (obsolete) — Splinter Review
Attachment #139838 - Flags: review?(neil.parkwaycc.co.uk)
Comment on attachment 139838 [details] [diff] [review] Patch I think some of the keys you quoted are wrong, but I don't actually have a Mac on which to check... >+ <td>Move cursor to next word</td> >+ <td>Ctrl+Right</td> >+ <td>Cmd+Right</td> Alt+Right >+ <td>Ctrl+Right</td> >+ <td bgcolor="#eeeeee">Move cursor to previous word</td> >+ <td bgcolor="#eeeeee">Ctrl+Left</td> >+ <td bgcolor="#eeeeee">Cmd+Left</td> Alt+Left >+ <td bgcolor="#eeeeee">Ctrl+Left</td> >+ <td>Move to beginning of the text</td> >+ <td>Ctrl+Home</td> >+ <td>&nbsp;</td> Cmd+Up >+ <td>&nbsp;</td> Ctrl+Home >+ <td bgcolor="#eeeeee">Move to end of the text</td> >+ <td bgcolor="#eeeeee">Ctrl+End</td> >+ <td bgcolor="#eeeeee">&nbsp;</td> Cmd+Down >+ <td bgcolor="#eeeeee">&nbsp;</td> Ctrl+End Note: had these cells really been blank, better would have been to use the empty-cells: show; style than to put in the space. >+ <td>Select next word</td> >+ <td>Ctrl+Shift+Right</td> >+ <td>Cmd+Shift+Right</td> Alt+Shift+Right >+ <td>Ctrl+Shift+Right</td> >+ <td bgcolor="#eeeeee">Select previous word</td> >+ <td bgcolor="#eeeeee">Ctrl+Shift+Left</td> >+ <td bgcolor="#eeeeee">Cmd+Shift+Left</td> Alt+Shift+Left >+ <td bgcolor="#eeeeee">Ctrl+Shift+Left</td> Would it be better to point out that Shift modifies all movement keys to select/extend? >+ <td bgcolor="#eeeeee">Delete next word</td> >+ <td bgcolor="#eeeeee">Ctrl+Del</td> >+ <td bgcolor="#eeeeee">Cmd+Delete</td> >+ <td bgcolor="#eeeeee">Ctrl+Delete</td> Consistency please - I prefer Del to Delete but not both!
Attachment #139838 - Flags: review?(neil.parkwaycc.co.uk) → review-
Since the shortcuts deals with text manipulation/navigation shouldn't shortcuts for Copy, Paste, Select All and Delete be included? I know that they already exists in another section but it looks like they belong here as well.
Assignee: rlk → nobody
Status: ASSIGNED → NEW
Well, listing all the editing shortcuts under general shortcuts will make it too long, but we need to decide how to categorize them...
Couldn't we include the caret browsing shortcuts as well by adding a * to the shortcuts that works in caret browsing mode (with an explanation like "Will work in caret browsing" or something)?
Assignee: nobody → neil
Component: Help Viewer → Help
Product: Documentation → Mozilla Application Suite
Patch seems to apply to 1.8 branch only. Don't know the plan about 1.9 trunk.
Version: unspecified → SeaMonkey 1.1 Branch
We don't do those kind of string changes on 1.8. And please don't change the version to 1.1 (or 1.0) unless you're 100% sure that the bug report only matters for 1.1 (or 1.0).
Version: SeaMonkey 1.1 Branch → Trunk
(In reply to comment #6) > Couldn't we include the caret browsing shortcuts as well by adding a * to the > shortcuts that works in caret browsing mode (with an explanation like "Will work > in caret browsing" or something)? Stefan, is this something you can knock a patch up for?
Assignee: neil → nobody
OS: Windows 2000 → All
QA Contact: danielwang → help
Hardware: x86 → All
If I adapt R.J Keller's patch to apply on comm-central with the corrections outlined in comment #3 by Neil (note that I don't have a Mac, so I can't make sure they're right) and the asterisk for caret browsing (comment #6), could that be enough for a (re)start? :-)
(In reply to comment #10) > If I adapt R.J Keller's patch to apply on comm-central with the corrections > outlined in comment #3 by Neil (note that I don't have a Mac, so I can't make > sure they're right) and the asterisk for caret browsing (comment #6), could > that be enough for a (re)start? :-) There is only one way to find out. ;-) Note: Please ask stefanh for review since he's the only one around with a Mac. If need be he can ask Ian or me to have another look (e.g. I can check Linux and Windows). Also keep in mind that since the patch was created, some things have changed (e.g. Macintosh -> Mac OS, removal of HTML styling through attributes).
Note to Stefan: I have applied Ian's comment #3 to this new patch, but I can't test it myself with a Mac to make sure they are the right shortcuts. I have checked Linux shortcuts (and have changed some of them, like Select All, Go to beginning of document and Go to ending of document), and I am pretty sure it works for Windows, too. I have added <colgroup>, <thead> and <tbody> elements, and I have removed the styling. Regarding caret browsing, all but two shortcuts work in that mode, so I thought it had more sense to mark the exceptions instead of the rule.
Assignee: nobody → rpmdisguise-otros
Attachment #139838 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #487771 - Flags: review?(stefanh)
I think we might need a breif and short explanation of the term "caret browsing". Could be in the glossary and then we could link to it. Could also be in the beginning of the section, but if put in the glossary we could probably use it where we actually describe the shortcut. Ugh, it's called "Caret Mode" in shortcuts_navigator.xhtml#285 (why is it there when it also works in MailNews?)
(In reply to comment #13) > Ugh, it's called "Caret Mode" in shortcuts_navigator.xhtml#285 (why is it there > when it also works in MailNews?) Probably because browser people tend to ignore MailNews: ;-)
I've added an entry for caret browsing in the glossary, and moved the caret browsing shortcut from shortcuts_navigator to general SeaMonkey section in shortcuts.xhtml.
Attachment #487771 - Attachment is obsolete: true
Attachment #488354 - Flags: review?(stefanh)
Attachment #487771 - Flags: review?(stefanh)
I will probably not be able to look at this until middle/end of next week.
Comment on attachment 488354 [details] [diff] [review] R. J. Keller's patch adapted to current status of comm-central with suggestions from stefanh General: It's "Right Arrow"/"Left Arrow" You missed Cut/Copy/Paste/Delete (both back/fwd) I also think we should have moving one character (left/right) and moving one line up/down + commands also apply to Web pages in caret browsing mode.</p> Not only Web pages ;-) + <td>Move cursor to next word</td> . . . + <td>Move to beginning of the line</td> Either just "Move" or "Move cursor". Probably better with just "Move" (we mention "Caret", so we should probably not speak about "Cursor"). + <td>Move to beginning of the line</td> . . . + <td>Move to end of line</td> I know you just copied these, but we need to decide whether to use "the" or not ;-). I would say we should try to avoid it. + <td>Delete next word (except in caret browsing mode)</td> "except in caret browsing mode" sound a little bit cryptic. I think you want "Text Field only" or something like that. Maybe we should go for the "*"? +<dt id="caret_browsing">caret browsing</dt><dd>A feature of &brandShortName; + that allows to move over static text (like web pages you are visiting, or + e-mail messages you have received) using a text cursor just like if you + were editing the text, although you can't actually change anything. It is + intended to help users with disabilities, or simply to ease text selection + in complex web pages like those with several overlaid text blocks. You switch + caret browsing mode on and off pressing the F7 key.</dd> + I think this is a bit too long. Let's just focus on what it is, something like this: "A &brandShortName; feature that allows you to navigate through text in Web pages and e-mail messages (or this Help window) with a caret. Using your keyboard, you can navigate and select text like you do in a text editor. You turn caret browsing mode on and off by pressing the F7 key." (I think we have a 'kbd' class for this that you can assign the 'F7' to with a <span>. I don't think it changes anything, but it can be good to have it if we want to style the keyboard shortcuts differently) Mac-specific stuff: Alt --> Opt on Mac Delete next word is not Cmd+Del, should be Opt+Del Cmd+left/right doesn't work in Caret Browsing mode on Mac. When I'm in CB mode and hit Cmd+Left Arrow, I move back one page.
Attachment #488354 - Flags: review?(stefanh) → review-
(In reply to comment #17) > + <td>Delete next word (except in caret browsing mode)</td> > "except in caret browsing mode" sound a little bit cryptic. I think you want > "Text Field only" or something like that. Maybe we should go for the "*"? I've gone with "(in text fields only)", because I don't like the original idea of an asterisk for every shortcut working in both modes. If there is consensus about using the asterisk to mark shortcuts not available in CB mode, that's OK for me too. > > > +<dt id="caret_browsing">caret browsing</dt><dd>A feature of &brandShortName; > + that allows to move over static text (like web pages you are visiting, or > + e-mail messages you have received) using a text cursor just like if you > + were editing the text, although you can't actually change anything. It is > + intended to help users with disabilities, or simply to ease text selection > + in complex web pages like those with several overlaid text blocks. You > switch > + caret browsing mode on and off pressing the F7 key.</dd> > + > > I think this is a bit too long. Let's just focus on what it is, something like > this: > > "A &brandShortName; feature that allows you to navigate through text in Web > pages and e-mail messages (or this Help window) with a caret. Using your > keyboard, you can navigate and select text like you do in a text editor. You > turn caret browsing mode on and off by pressing the F7 key." > > (I think we have a 'kbd' class for this that you can assign the 'F7' to with a > <span>. I don't think it changes anything, but it can be good to have it if we > want to style the keyboard shortcuts differently) No class for "kbd" in helpFileLayout.css, but I have enclosed F7 in a <kbd> element. For documentation I write as part of my work, I tend to use a visual style for keys with box, something like this: -moz-border-radius: 3px; border-left: 1px solid black; border-top: 1px solid black; border-right: 2px solid black; border-bottom: 2px solid black; I'm really bad when it comes to CSS, so I haven't included that into the new patch. > Mac-specific stuff: > Alt --> Opt on Mac > Delete next word is not Cmd+Del, should be Opt+Del > Cmd+left/right doesn't work in Caret Browsing mode on Mac. When I'm in CB mode > and hit Cmd+Left Arrow, I move back one page. Well, it works in Linux and Windows in CB mode. :-) I've left the Mac OS cell empty.
Just commenting here, I haven't looked through the new patch in detail - but I will try to do that on Sunday. (In reply to comment #18) > I've gone with "(in text fields only)", because I don't like the original idea > of an asterisk for every shortcut working in both modes. If there is consensus > about using the asterisk to mark shortcuts not available in CB mode, that's OK > for me too. It's your call, I think. My only argument against it would be that since you're forced to say "only", it sounds slightly negative. > No class for "kbd" in helpFileLayout.css, but I have enclosed F7 in a <kbd> > element. For documentation I write as part of my work, I tend to use a visual > style for keys with box, something like this: > > -moz-border-radius: 3px; > border-left: 1px solid black; > border-top: 1px solid black; > border-right: 2px solid black; > border-bottom: 2px solid black; > > I'm really bad when it comes to CSS, so I haven't included that into the new > patch. I haven't tried this, but I've been wanting to do something about this for some time, so feel free to file a bug. I would think that using black is a bit too much, though (some gray borders/backgrounds maybe?) > > > Mac-specific stuff: > > Alt --> Opt on Mac > > Delete next word is not Cmd+Del, should be Opt+Del > > Cmd+left/right doesn't work in Caret Browsing mode on Mac. When I'm in CB mode > > and hit Cmd+Left Arrow, I move back one page. > > Well, it works in Linux and Windows in CB mode. :-) I've left the Mac OS cell > empty. Ah, yes I noticed. But it works in textfields! That is, you could add that comment for mac-only by using the specific class on a <span>.
(In reply to comment #20) > > No class for "kbd" in helpFileLayout.css, but I have enclosed F7 in a <kbd> > > element. For documentation I write as part of my work, I tend to use a > > visual style for keys with box, something like this: > > > > -moz-border-radius: 3px; > > border-left: 1px solid black; > > border-top: 1px solid black; > > border-right: 2px solid black; > > border-bottom: 2px solid black; > > > > I'm really bad when it comes to CSS, so I haven't included that into the new > > patch. > > I haven't tried this, but I've been wanting to do something about this for some > time, so feel free to file a bug. I would think that using black is a bit too > much, though (some gray borders/backgrounds maybe?) While preparing to file the bug, I've discovered that there are some <kbd> occurrences in Help Contents used to mark command lines, parameters and text typing examples: cs_nav_prefs_navigator.xhtml:551: parameters that open windows (like <kbd>-new-window</kbd>) are used.</li> nav_help.xhtml:631: before your search string. For example, type <q><kbd>/hello</kbd></q> to nav_help.xhtml:919: For example, type <kbd>50</kbd> and to make each page half the size of nav_help.xhtml:1172: <li>Click in the Location Bar, type <kbd>about:plugins</kbd> and press nav_help.xhtml:1269: the keyword <q>m.o</q>, you can enter <kbd>m.o</kbd> in the Location Bar and nav_help.xhtml:1289: <kbd>g Lord of the Rings</kbd> will perform a Google I-Feel-Lucky search nav_help.xhtml:1295: <li>Go to your search form (e.g. <kbd>www.google.com</kbd>).</li> nav_help.xhtml:1296: <li>Enter a dummy search string (e.g. <kbd>ILoveMozilla</kbd>).</li> nav_help.xhtml:1301: dummy string (e.g. <tt>ILoveMozilla</tt>) with <kbd>%s</kbd>. nav_help.xhtml:1303: <kbd>http://www.google.com/search?q=<strong>%s</strong>&amp;btnI=I&apos;mFeelingLucky</kbd>.</li> nav_help.xhtml:1310: <kbd><var>keyword</var> <var>search_words</var></kbd> in the Location Bar. profiles_help.xhtml:52: the command line: <kbd>./mozilla -profilemanager</kbd></span></li> profiles_help.xhtml:83: down the <kbd>Option</kbd> key while you&apos;re starting profiles_help.xhtml:86: <kbd>./mozilla -profilemanager</kbd></span></li> so adding the style would look weird in those lines. > Ah, yes I noticed. But it works in textfields! That is, you could add that > comment for mac-only by using the specific class on a <span>. Done.
I've kept "in text fields only", added it to Cmd+Left/Right Arrow, and I've replaced "Bksp" for "Backspace", since that's the word used in other parts of Help Contents.
Attachment #491931 - Attachment is obsolete: true
Attachment #491988 - Flags: review?(stefanh)
Attachment #491931 - Flags: review?(stefanh)
Comment on attachment 491988 [details] [diff] [review] R. J. Keller's patch adapted to current status of comm-central with suggestions from stefanh and Backspace instead of Bksp +<dt id="caret_browsing">caret browsing</dt><dd>A &brandShortName; feature that + allows to navigate "allows you to" + <tr> + <td>Paste</td> + <td>Ctrl+V</td> + <td>Cmd+V</td> + <td>Ctrl+V</td> + </tr> + <tr> + <td>Cut</td> + <td>Ctrl+X</td> + <td>Cmd+X</td> + <td>Ctrl+X</td> + </tr> I doubt these work in caret browsing ;-) r = me with the above fixed.
Attachment #491988 - Flags: review?(stefanh) → review+
(In reply to comment #21) > > While preparing to file the bug, I've discovered that there are some <kbd> > occurrences in Help Contents used to mark command lines, parameters and text > typing examples: > > cs_nav_prefs_navigator.xhtml:551: parameters that open windows (like > <kbd>-new-window</kbd>) are used.</li> > nav_help.xhtml:631: before your search string. For example, type > <q><kbd>/hello</kbd></q> to > nav_help.xhtml:919: For example, type <kbd>50</kbd> and to make each > page half the size of > nav_help.xhtml:1172: <li>Click in the Location Bar, type > <kbd>about:plugins</kbd> and press > nav_help.xhtml:1269: the keyword <q>m.o</q>, you can enter <kbd>m.o</kbd> in > the Location Bar and > nav_help.xhtml:1289: <kbd>g Lord of the Rings</kbd> will perform a Google > I-Feel-Lucky search > nav_help.xhtml:1295: <li>Go to your search form (e.g. > <kbd>www.google.com</kbd>).</li> > nav_help.xhtml:1296: <li>Enter a dummy search string (e.g. > <kbd>ILoveMozilla</kbd>).</li> > nav_help.xhtml:1301: dummy string (e.g. <tt>ILoveMozilla</tt>) with > <kbd>%s</kbd>. > nav_help.xhtml:1303: > <kbd>http://www.google.com/search?q=<strong>%s</strong>&amp;btnI=I&apos;mFeelingLucky</kbd>.</li> > nav_help.xhtml:1310: <kbd><var>keyword</var> <var>search_words</var></kbd> in > the Location Bar. > profiles_help.xhtml:52: the command line: <kbd>./mozilla > -profilemanager</kbd></span></li> > profiles_help.xhtml:83: down the <kbd>Option</kbd> key while you&apos;re > starting > profiles_help.xhtml:86: <kbd>./mozilla -profilemanager</kbd></span></li> > > so adding the style would look weird in those lines. I think anything you type with the keyboard could be styled differently from the regular text in order to indicate that it is something you type (you would then not have the "+" sign in Ctrl+F wrapped in a <kbd> since you don't type the "+").
(In reply to comment #24) > I think anything you type with the keyboard could be styled differently from > the regular text in order to indicate that it is something you type (you would > then not have the "+" sign in Ctrl+F wrapped in a <kbd> since you don't type > the "+"). Which would mean that all shortcut keys listed in our "shortcuts" pages needs to be wrapped in a <kbd> (currently, they're not).
FWIW I'd vote for not using <kbd> for shortcuts at all since you press those, as opposed to typing text which is what <kbd> seems to be used for throughout the rest of Help given the examples from comment 21.
(In reply to comment #26) > FWIW I'd vote for not using <kbd> for shortcuts at all since you press those, > as opposed to typing text which is what <kbd> seems to be used for throughout > the rest of Help given the examples from comment 21. Not really true: "down the <kbd>Option</kbd> key while you&apos;re" (from comment #21). I suppose opinions of what <kbd> stands for differs, though (haven't read the spec)
(In reply to comment #27) > I suppose opinions of what <kbd> stands for differs, though > (haven't read the spec) http://www.w3.org/TR/html401/struct/text.html#h-9.2.1 says: "KBD: Indicates text to be entered by the user."
(In reply to comment #26) > FWIW I'd vote for not using <kbd> for shortcuts at all since you press those, > as opposed to typing text which is what <kbd> seems to be used for throughout > the rest of Help given the examples from comment 21. Actually, the examples I gave were for cases where <kbd> was used not for key shortcuts, but there are a lot more where <kbd> actually wraps keys. So, as Stefan says, it seems that there are different uses for <kbd>.
(In reply to comment #28) > (In reply to comment #27) > > I suppose opinions of what <kbd> stands for differs, though > > (haven't read the spec) > > http://www.w3.org/TR/html401/struct/text.html#h-9.2.1 says: > "KBD: Indicates text to be entered by the user." Then I guess we should define a class for visual styling of key shortcuts.
(In reply to comment #30) > Then I guess we should define a class for visual styling of key shortcuts. Probably, but then better in a new bug since, as you said, there are already wrong uses which would need to be fixed as well. Or just an extra bug for those and introduce the new class here.
Hopefully final attempt. :-)
Attachment #491988 - Attachment is obsolete: true
Attachment #492195 - Flags: review?(stefanh)
Attachment #492195 - Flags: review?(stefanh) → review+
(In reply to comment #28) > (In reply to comment #27) > > I suppose opinions of what <kbd> stands for differs, though > > (haven't read the spec) > > http://www.w3.org/TR/html401/struct/text.html#h-9.2.1 says: > "KBD: Indicates text to be entered by the user." Ah, ok.(In reply to comment #31) > (In reply to comment #30) > > Then I guess we should define a class for visual styling of key shortcuts. > > Probably, but then better in a new bug since, as you said, there are already > wrong uses which would need to be fixed as well. Or just an extra bug for those > and introduce the new class here. Lets do this in another bug.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → seamonkey2.1b2
(In reply to comment #31) > > (In reply to comment #30) > > > Then I guess we should define a class for visual styling of key shortcuts. > > Lets do this in another bug. Filed bug 613884.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: