mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 13:00:37 +00:00
Add support for backtab character.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31026 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7c984daa0b
commit
7957a90007
5 changed files with 33 additions and 3 deletions
|
@ -39,7 +39,7 @@
|
|||
|
||||
/* A table mapping character names to characters, used to interpret
|
||||
the character names found in KeyBindings dictionaries. */
|
||||
#define CHARACTER_TABLE_SIZE 77
|
||||
#define CHARACTER_TABLE_SIZE 78
|
||||
|
||||
static struct
|
||||
{
|
||||
|
@ -125,6 +125,7 @@ character_table[CHARACTER_TABLE_SIZE] =
|
|||
/* Special characters by name. Useful if you want, for example,
|
||||
to associate some special action to C-Tab or similar evils. */
|
||||
{ @"Backspace", NSBackspaceCharacter },
|
||||
{ @"BackTab", NSBackTabCharacter },
|
||||
{ @"Tab", NSTabCharacter },
|
||||
{ @"Enter", NSEnterCharacter },
|
||||
{ @"FormFeed", NSFormFeedCharacter },
|
||||
|
@ -654,6 +655,10 @@ static NSInputManager *currentInputManager = nil;
|
|||
[self doCommandBySelector: @selector (cancelOperation:)];
|
||||
break;
|
||||
|
||||
case NSBackTabCharacter:
|
||||
[self doCommandBySelector: @selector (insertBacktab:)];
|
||||
break;
|
||||
|
||||
case NSTabCharacter:
|
||||
if (flags & NSShiftKeyMask)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue