Skip navigation.
 
mlRe: How is "Apple + Ctrl + D" implemented?
FROM : John Joyce
DATE : Mon Apr 28 14:35:26 2008

> Graham,
>
> Thanks for your reply! But how can I "find the range of the word" 
> given
> the glyph index?  I just can not find an API doing so.
>
> So I don't think this is the underlying implementation.  Any comments
> from others?


The range of the word is up to you to find and depends on the 
language. If it is any common language from Europe, your job is a lot 
easier. You mainly need to work with whitespace and punctuation. If 
you're working with Japanese, you'll need to learn of lot of complex 
tricks to identify the range of words...
As for the implementation of the keyboard shortcut, you'll find it 
appears in Sys Prefs > Keyboard & Mouse > Keyboard Shortcuts , 
Dictionary.
That being the case, it is possible to turn off the existing 
shortcut. It may not be feasible or reliable to do so 
programmatically. Apple is free to set these shortcuts to anything at 
any time and at any level. You may need to instruct your users on how 
to change the keyboard shortcut(s).
The hard part is finding something available. Some things are taken 
up system wide, some are taken up on within apps.
The only way to wrest control of these is with an input manager, but 
that may not be worth the trouble.

Related mailsAuthorDate
mlHow is "Apple + Ctrl + D" implemented? Ying Bian Apr 28, 07:55
mlRe: How is "Apple + Ctrl + D" implemented? Graham Cox Apr 28, 08:51
mlRe: How is "Apple + Ctrl + D" implemented? Ying Bian Apr 28, 12:06
mlRe: How is "Apple + Ctrl + D" implemented? Graham Cox Apr 28, 12:36
mlRe: How is "Apple + Ctrl + D" implemented? Graham Cox Apr 28, 12:42
mlRe: How is "Apple + Ctrl + D" implemented? Graham.Lee Apr 28, 12:48
mlRe: How is "Apple + Ctrl + D" implemented? John Joyce Apr 28, 14:35
mlRe: How is "Apple + Ctrl + D" implemented? Ying Bian Apr 28, 15:25
mlRe: How is "Apple + Ctrl + D" implemented? Evan Gross Apr 29, 05:45
mlRe: How is "Apple + Ctrl + D" implemented? John Stiles Apr 29, 19:20
mlRe: How is "Apple + Ctrl + D" implemented? Keith Blount Apr 29, 21:12
mlRe: How is "Apple + Ctrl + D" implemented? John Stiles Apr 29, 22:36
mlRe: How is "Apple + Ctrl + D" implemented? Nathan Vander Wilt Apr 30, 17:00
mlRe: How is "Apple + Ctrl + D" implemented? Evan Gross May 1, 01:14
mlRe: How is "Apple + Ctrl + D" implemented? Deborah Goldsmith May 7, 22:28