TextView: Update nav shortcuts again

Make Cmd+Left and Cmd+Right work the same as Option+Left and
Option+Right, that is, they do word-wise navigation.

Make Option+Up go to beginning of paragraph and Option+Down go to end
of paragraph like Cmd+Left and Cmd+Right used to.

Unfortunately option shortcuts are currently eaten by S&T until #9431
gets fixed.
This commit is contained in:
John Scipione
2014-01-31 18:30:07 -05:00
parent 712bf7552d
commit 0875173246
2 changed files with 95 additions and 48 deletions
+10 -8
View File
@@ -453,15 +453,17 @@ private:
LayoutData* fLayoutData;
int32 fLastClickOffset;
bool fInstalledNavigateLinewiseShortcuts;
bool fInstalledNavigateWordwiseShortcuts;
bool fInstalledNavigateDocwiseShortcuts;
bool fInstalledNavigateToTopOrBottomShortcuts;
bool fInstalledNavigateCommandWordwiseShortcuts;
bool fInstalledNavigateOptionWordwiseShortcuts;
bool fInstalledNavigateOptionLinewiseShortcuts;
bool fInstalledNavigateCommandDocwiseShortcuts;
bool fInstalledNavigateHomeEndDocwiseShortcuts;
bool fInstalledSelectLinewiseShortcuts;
bool fInstalledSelectWordwiseShortcuts;
bool fInstalledSelectDocwiseShortcuts;
bool fInstalledSelectToTopOrBottomShortcuts;
bool fInstalledSelectCommandWordwiseShortcuts;
bool fInstalledSelectOptionWordwiseShortcuts;
bool fInstalledSelectOptionLinewiseShortcuts;
bool fInstalledSelectCommandDocwiseShortcuts;
bool fInstalledSelectHomeEndDocwiseShortcuts;
uint32 _reserved[6];
};