On Oct 15, 2008, at 12:11 PM, Nate wrote:

>
> When I run it in MacVim, it drops down a prompt (which is o.k.), but I
> can't press "C" to cancel.  I **can** press N for "No". (Why, oh why
> does OSX do this?)

in a nutshell: because of the Apple Human Interface Guidelines.

the standard Mac OS keyboard shortcuts for dialog cancellation (Esc or  
Cmd-.) work fine; MacVim is being a well-behaved Mac application and  
honoring them in its dialog.

from 
http://developer.apple.com/documentation/UserExperience/Conceptual/AppleHIGuidelines/XHIGUserInput/chapter_12_section_3.html
 
  :

--- begin paste ---

Esc (Escape)

The Esc (Escape) key basically means “let me out of here.” It has  
specific meanings in certain contexts. The user can press Esc in the  
following situations:

     *      In a dialog, instead of clicking Cancel
     *      To stop an operation in progress (such as printing),  
instead of pressing Command-period
     *      To cancel renaming a file or an item in a list
     *      To cancel a drag in progress

Pressing Esc should never cause the user to back out of an operation  
that would require extensive time or work to reenter. When the user  
presses Esc during a lengthy operation, display a confirmation dialog  
to be sure that the key wasn’t pressed accidentally.

--- end paste ---

i have a hard time thinking of any Mac app that accepts C as a  
keyboard shortcut for Cancel in a dialog (but doubtless someone will  
point one out to me!)

-steve
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_mac" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to