edenzik / macvim

Automatically exported from code.google.com/p/macvim
0 stars 0 forks source link

Modal Warning dialog is only allows positive acceptance from keyboard #179

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Any modal dialog that has two options. I was using VCSRevert and once the
file is reverted, a dialog is presented to the user. This dialog has two
options (See attached image), "Load File" and "OK". "OK" is default, but
often I would like to click "Load File". There is no way to select "Load
File" using just the keyboard.

What is the expected output? What do you see instead?
I would expect to use the OS X convention of Command-(first char of other
button)L to have that button selected. 

What version of MacVim and OS X are you using (see "MacVim->About MacVim"
and  "Apple Menu->About This Mac" menu items, e.g. "Snapshot 40, 10.5.6
Intel")?

- Version 7.2 stable 1.2 (33.3)
- OS X 10.5.7 (didn't work on 10.5.6 either) Intel

Original issue reported on code.google.com by arustad on 13 May 2009 at 3:29

Attachments:

GoogleCodeExporter commented 9 years ago
You can already use the keyboard to select options in dialogs.  Usually the 
first letter of a button is used to 
select that button (without holding down Cmd).  This is not optimal, but there 
is no way on Mac OS X to 
underline the letter to press like Vim does on other platforms.  See ":h 
macvim-dialogs" for more info.

In your case pressing "l" alone should select "Load File".

By the way: I have never heard of a convention in Mac OS X that lets you use 
Cmd-"first char" to select in 
dialogs.  The only one I know of is Cmd-D in the "Save changes?" dialog (this 
works in Macvim too).  Are you 
sure this is a convention?  Can you point me to an Apple doc that mentions it? 

Original comment by bjorn.winckler@gmail.com on 13 May 2009 at 7:04

GoogleCodeExporter commented 9 years ago
You are right, typing "l" works for this dialog. I too was basing my 
assumptions on
the saving of a document. Cmd-D causes the application to not save. Further
investigation indicates that Cmd-S doesn't save, and Cmd-C doesn't cancel...I 
guess
it wasn't a convention. Thanks for setting me straight on this.

Original comment by arustad on 13 May 2009 at 7:22

GoogleCodeExporter commented 9 years ago

Original comment by bjorn.winckler@gmail.com on 5 Jun 2009 at 7:06

GoogleCodeExporter commented 9 years ago
I didn't know about typing the first letter of buttons, and that is helpful. 
However when multiple files changed and the buttons are Ignore, Load All, Load 
File, OK, I can only select Load File, not Load All, via keyboard since they 
both start with L.

Also, I normally tab through the buttons of a Mac OS X dialog such as this one, 
so I can be sure which one the Enter key will trigger, but tabbing doesn't work 
here either.

Original comment by john.kur...@gmail.com on 28 Jul 2011 at 9:02