mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 20:50:44 +00:00
Enable Ctrl-l keybinding and add Ctrl-o keybinding as in Emacs and Cocoa.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28961 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
aa3ba49fb9
commit
1e913741b4
3 changed files with 17 additions and 1 deletions
|
@ -1,5 +1,10 @@
|
|||
2009-11-05 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* KeyBindings/DefaultKeyBindings.dict: Enable Ctrl-l key binding
|
||||
and add Ctrl-o key binding as in Emacs and Cocoa.
|
||||
* Source/NSTextView_actions.m (-insertNewlineIgnoringFieldEditor:,
|
||||
-insertTabIgnoringFieldEditor): Implement NSResponder methods.
|
||||
|
||||
* Source/NSWindow.m (-dealloc): Release the toolbar without
|
||||
updating the window's geometry and thus avoid calling the delegate
|
||||
during deallocation.
|
||||
|
|
|
@ -62,9 +62,10 @@
|
|||
"Control-e" = "moveToEndOfLine:";
|
||||
"Control-f" = "moveForward:";
|
||||
"Control-h" = "deleteBackward:";
|
||||
/* "Control-l" = "centerSelectionInVisibleArea:"; */
|
||||
"Control-l" = "centerSelectionInVisibleArea:";
|
||||
"Control-k" = "deleteToEndOfLine:";
|
||||
"Control-n" = "moveDown:";
|
||||
"Control-o" = ( "insertNewlineIgnoringFieldEditor:", "moveBackward:" );
|
||||
"Control-p" = "moveUp:";
|
||||
"Control-t" = "transpose:";
|
||||
"Control-v" = "pageDown:";
|
||||
|
|
|
@ -548,6 +548,16 @@ static NSNumber *float_plus_one(NSNumber *cur)
|
|||
//[self insertText: @"\t"];
|
||||
}
|
||||
|
||||
- (void) insertNewlineIgnoringFieldEditor: (id)sender
|
||||
{
|
||||
[self insertText: @"\n"];
|
||||
}
|
||||
|
||||
- (void) insertTabIgnoringFieldEditor: (id)sender
|
||||
{
|
||||
[self insertText: @"\t"];
|
||||
}
|
||||
|
||||
|
||||
- (void) deleteForward: (id)sender
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue