Author: paullanders
Date: Thu May 14 21:27:29 2015
New Revision: 38497
URL: http://svn.gna.org/viewcvs/gnustep?rev=38497&view=rev
Log:
Fixed alt behaviors for return and arrow keys to be mac-like.
Modified:
libs/gui/branches/gnustep_testplant_branch/KeyBindings/DefaultKeyBindings.dict
libs/gui/branches/gnustep_testplant_branch/Source/NSInputManager.m
Modified:
libs/gui/branches/gnustep_testplant_branch/KeyBindings/DefaultKeyBindings.dict
URL:
http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/KeyBindings/DefaultKeyBindings.dict?rev=38497&r1=38496&r2=38497&view=diff
==============================================================================
---
libs/gui/branches/gnustep_testplant_branch/KeyBindings/DefaultKeyBindings.dict
(original)
+++
libs/gui/branches/gnustep_testplant_branch/KeyBindings/DefaultKeyBindings.dict
Thu May 14 21:27:29 2015
@@ -18,8 +18,8 @@
"Control-Shift-UpArrow" = "moveToBeginningOfDocumentAndModifySelection:";
"Control-Shift-DownArrow" = "moveToEndOfDocumentAndModifySelection:";
- "Alternate-UpArrow" = ("moveUp:", "moveWordBackward:");
- "Alternate-DownArrow" = ("moveDown:", "moveWordForward:");
+ "Alternate-UpArrow" = ("moveBackward:", "moveToBeginningOfParagraph:");
+ "Alternate-DownArrow" = ("moveForward:", "moveToEndOfParagraph:");
"Alternate-LeftArrow" = "moveWordBackward:";
"Alternate-RightArrow" = "moveWordForward:";
Modified: libs/gui/branches/gnustep_testplant_branch/Source/NSInputManager.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/Source/NSInputManager.m?rev=38497&r1=38496&r2=38497&view=diff
==============================================================================
--- libs/gui/branches/gnustep_testplant_branch/Source/NSInputManager.m
(original)
+++ libs/gui/branches/gnustep_testplant_branch/Source/NSInputManager.m Thu May
14 21:27:29 2015
@@ -675,7 +675,14 @@
case NSEnterCharacter:
case NSFormFeedCharacter:
case NSCarriageReturnCharacter:
- [self doCommandBySelector: @selector (insertNewline:)];
+ if (flags & NSAlternateKeyMask)
+ {
+ [self doCommandBySelector: @selector
(insertNewlineIgnoringFieldEditor:)];
+ }
+ else
+ {
+ [self doCommandBySelector: @selector (insertNewline:)];
+ }
break;
case NSHelpFunctionKey:
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs