mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 18:40:38 +00:00
Send messages from the Spelling panel down to the responder chain of the
main window only, to avoid spell checking the panel's own text field. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29640 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e541ba3bc3
commit
90b24848cc
2 changed files with 15 additions and 9 deletions
|
@ -534,9 +534,9 @@ inSpellDocumentWithTag:(int)tag
|
|||
|
||||
- _findNext: (id)sender
|
||||
{
|
||||
BOOL processed = [NSApp sendAction: @selector(checkSpelling:)
|
||||
to: nil
|
||||
from: _spellPanel];
|
||||
BOOL processed = [[[NSApp mainWindow] firstResponder]
|
||||
tryToPerform: @selector(checkSpelling:)
|
||||
with: _spellPanel];
|
||||
|
||||
if (!processed)
|
||||
{
|
||||
|
@ -593,9 +593,9 @@ inSpellDocumentWithTag:(int)tag
|
|||
|
||||
- _ignore: (id)sender
|
||||
{
|
||||
BOOL processed = [NSApp sendAction: @selector(ignoreSpelling:)
|
||||
to: nil
|
||||
from: _wordField];
|
||||
BOOL processed = [[[NSApp mainWindow] firstResponder]
|
||||
tryToPerform: @selector(ignoreSpelling:)
|
||||
with: _wordField];
|
||||
|
||||
if (!processed)
|
||||
{
|
||||
|
@ -616,9 +616,9 @@ inSpellDocumentWithTag:(int)tag
|
|||
|
||||
- _correct: (id)sender
|
||||
{
|
||||
BOOL processed = [NSApp sendAction: @selector(changeSpelling:)
|
||||
to: nil
|
||||
from: _wordField];
|
||||
BOOL processed = [[[NSApp mainWindow] firstResponder]
|
||||
tryToPerform: @selector(changeSpelling:)
|
||||
with: _wordField];
|
||||
|
||||
if (!processed)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue