Bug 3457 - [GTK] Support more standard keyboard shortcuts in dialogs
Summary: [GTK] Support more standard keyboard shortcuts in dialogs
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: unspecified
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Mikayla Hutchinson [MSFT]
Depends on:
Reported: 2012-02-14 17:42 UTC by Eric Fikus
Modified: 2012-11-08 11:37 UTC (History)
4 users (show)

Tags: gtk
Is this bug a regression?: ---
Last known good build:

Patch adding keybindings (974 bytes, patch)
2012-07-20 16:40 UTC, Kristian Rietveld (inactive)

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Eric Fikus 2012-02-14 17:42:01 UTC
On OS X, text entry in dialogs (find, open type, open file, etc) does not support some standard keyboard shortcuts.  Two that are missing that I try to use all the time are Ctrl+k to clear to end of line and Ctrl+d to delete the next character.

This is frustrating since I'm in the habit of restarting text entry by hitting Ctrl+a Ctrl+k and this works in every other OS X app I use.
Comment 1 Eric Fikus 2012-02-28 19:20:50 UTC
This should also be added to the debugger immediate window, including Ctrl+p and Ctrl+n (should behave like up and down arrows).
Comment 2 Miguel de Icaza [MSFT] 2012-04-24 12:28:51 UTC
This is odd, I can also see this problem
Comment 3 Mikayla Hutchinson [MSFT] 2012-04-25 12:30:23 UTC
Needs to be implemented for GtkEntry etc.
Comment 4 Kristian Rietveld (inactive) 2012-07-20 16:40:06 UTC
Created attachment 2240 [details]
Patch adding keybindings

This patch to gtkrc.key.mac adds the following key bindings:

 - Ctrl+d to delete the character following the cursor,
 - Ctrl+k to delete from the cursor until the end of the paragraph,
 - Ctrl+p as arrow up,
 - Ctrl+n as arrow down.

Now in "testtext", Ctrl+n is also used as action for "new window".  So with the default GTK+ installation Ctrl+n conflicts a bit.  With MonoDevelop this should not be a problem because the menu actions all use command like they should.

Ctrl+d, Ctrl+k can probably be upstreamed without problems however.
Comment 5 Mikayla Hutchinson [MSFT] 2012-07-20 17:48:52 UTC
Landed in bockbuild, thanks!
Comment 6 Lluis Sanchez 2012-11-08 11:37:50 UTC