mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 16:20:38 +00:00
Added nextKeyView to views withing gmodel to allow user to tab between buttons. Fixed a bug in NSBrowser. Made some corrections to NSSpellChecker and [NSTextView checkSpelling:]
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10641 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1ef5d6721d
commit
caac798bca
5 changed files with 173 additions and 69 deletions
|
@ -333,9 +333,7 @@ static int __documentTag = 0;
|
|||
{
|
||||
int wordCount = 0;
|
||||
NSRange r = NSMakeRange(0,0);
|
||||
id responder = [[[[NSApplication sharedApplication] mainWindow] contentView] documentView];
|
||||
|
||||
_currentTag = [responder spellCheckerDocumentTag];
|
||||
|
||||
r = [self checkSpellingOfString: stringToCheck
|
||||
startingAt: startingOffset
|
||||
language: _language
|
||||
|
@ -505,7 +503,7 @@ inSpellDocumentWithTag:(int)tag
|
|||
- _findNext: (id)sender
|
||||
{
|
||||
BOOL processed = NO;
|
||||
id responder = [[[[NSApplication sharedApplication] mainWindow] contentView] documentView];
|
||||
id responder = [[[NSApplication sharedApplication] mainWindow] firstResponder];
|
||||
|
||||
processed = [responder tryToPerform: @selector(checkSpelling:)
|
||||
with: _spellPanel];
|
||||
|
@ -565,7 +563,7 @@ inSpellDocumentWithTag:(int)tag
|
|||
- _ignore: (id)sender
|
||||
{
|
||||
BOOL processed = NO;
|
||||
id responder = [[[[NSApplication sharedApplication] mainWindow] contentView] documentView];
|
||||
id responder = [[[NSApplication sharedApplication] mainWindow] firstResponder];
|
||||
|
||||
processed = [responder tryToPerform: @selector(ignoreSpelling:)
|
||||
with: _wordField];
|
||||
|
@ -589,7 +587,7 @@ inSpellDocumentWithTag:(int)tag
|
|||
- _correct: (id)sender
|
||||
{
|
||||
BOOL processed = NO;
|
||||
id responder = [[[[NSApplication sharedApplication] mainWindow] contentView] documentView];
|
||||
id responder = [[[NSApplication sharedApplication] mainWindow] firstResponder];
|
||||
|
||||
processed = [responder tryToPerform: @selector(changeSpelling:)
|
||||
with: _wordField];
|
||||
|
@ -648,6 +646,17 @@ inSpellDocumentWithTag:(int)tag
|
|||
[[NSApp _listener] _languagesForPopUpButton]];
|
||||
[_accessoryView setDelegate: self];
|
||||
[_accessoryView setDoubleAction: @selector(_correct:)];
|
||||
|
||||
[_findNextButton setKeyEquivalent: @"n"];
|
||||
[_ignoreButton setKeyEquivalent: @"i"];
|
||||
[_learnButton setKeyEquivalent: @"l"];
|
||||
[_forgetButton setKeyEquivalent: @"f"];
|
||||
[_guessButton setKeyEquivalent: @"g"];
|
||||
[_correctButton setKeyEquivalent: @"c"];
|
||||
[_correctButton setImagePosition: NSImageRight];
|
||||
[_correctButton setImage: [NSImage imageNamed: @"common_ret"]];
|
||||
[_correctButton setAlternateImage: [NSImage imageNamed: @"common_retH"]];
|
||||
[_spellPanel makeFirstResponder: _correctButton];
|
||||
}
|
||||
@end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue