iOS: Fixed keyboard issues

This commit is contained in:
Martin Fleisz 2013-03-18 12:29:47 +01:00
parent 6a7c768522
commit 212673d7e9
4 changed files with 19 additions and 20 deletions

View File

@ -223,8 +223,7 @@ NSMutableArray* FilterHistory(NSArray* history, NSString* filterStr)
#pragma mark Version Info #pragma mark Version Info
NSString* TSXAppFullVersion() NSString* TSXAppFullVersion()
{ {
NSDictionary* info_dict = [[NSBundle mainBundle] infoDictionary]; return [NSString stringWithUTF8String:GIT_REVISION];
return [NSString stringWithFormat:@"%@.%@ (%@)", [info_dict objectForKey:@"CFBundleShortVersionString"], [info_dict objectForKey:@"CFBundleVersion"], [NSString stringWithUTF8String:GIT_REVISION]];
} }
#pragma mark iPad/iPhone detection #pragma mark iPad/iPhone detection

View File

@ -204,7 +204,7 @@
// toggle windows key, returns true if pressed, otherwise false // toggle windows key, returns true if pressed, otherwise false
- (void)toggleWinKey - (void)toggleWinKey
{ {
[self sendVirtualKey:VK_LWIN up:_win_pressed]; [self sendVirtualKey:(VK_LWIN | KBDEXT) up:_win_pressed];
_win_pressed = !_win_pressed; _win_pressed = !_win_pressed;
[self notifyDelegateModifiersChanged]; [self notifyDelegateModifiersChanged];
} }
@ -213,7 +213,7 @@
- (void)sendEnterKeyStroke - (void)sendEnterKeyStroke
{ {
[self sendVirtualKeyCode:VK_RETURN]; [self sendVirtualKeyCode:(VK_RETURN | KBDEXT)];
} }
- (void)sendEscapeKeyStroke - (void)sendEscapeKeyStroke

View File

@ -52,17 +52,17 @@ struct ButtonItem functionKeysItems[24] =
{ @"img:icon_key_arrows", KEY_SHOW_CURSORVIEW }, { @"img:icon_key_arrows", KEY_SHOW_CURSORVIEW },
{ @"Tab", VK_TAB }, { @"Tab", VK_TAB },
{ @"Ins", VK_INSERT }, { @"Ins", VK_INSERT | KBDEXT },
{ @"Home", VK_HOME }, { @"Home", VK_HOME | KBDEXT },
{ @"PgUp", VK_PRIOR }, { @"PgUp", VK_PRIOR | KBDEXT },
{ @"img:icon_key_win", VK_LWIN }, { @"img:icon_key_win", VK_LWIN | KBDEXT },
{ @"123", KEY_SHOW_NUMPADVIEW }, { @"123", KEY_SHOW_NUMPADVIEW },
{ @"Print", VK_PRINT }, { @"Print", VK_PRINT },
{ @"Del", VK_DELETE }, { @"Del", VK_DELETE | KBDEXT },
{ @"End", VK_END }, { @"End", VK_END | KBDEXT },
{ @"PgDn", VK_NEXT }, { @"PgDn", VK_NEXT | KBDEXT },
{ @"img:icon_key_menu", VK_APPS } { @"img:icon_key_menu", VK_APPS | KBDEXT }
}; };
@ -75,7 +75,7 @@ struct ButtonItem numPadKeysItems[24] =
{ @"9", VK_NUMPAD9 }, { @"9", VK_NUMPAD9 },
{ @"-", VK_SUBTRACT }, { @"-", VK_SUBTRACT },
{ @"/", VK_DIVIDE }, { @"/", VK_DIVIDE | KBDEXT },
{ @"*", VK_MULTIPLY }, { @"*", VK_MULTIPLY },
{ @"4", VK_NUMPAD4 }, { @"4", VK_NUMPAD4 },
{ @"5", VK_NUMPAD5 }, { @"5", VK_NUMPAD5 },
@ -94,7 +94,7 @@ struct ButtonItem numPadKeysItems[24] =
{ @"", KEY_MERGE_COLUMN }, { @"", KEY_MERGE_COLUMN },
{ @"0", VK_NUMPAD0 }, { @"0", VK_NUMPAD0 },
{ @".", VK_DECIMAL }, { @".", VK_DECIMAL },
{ @"img:icon_key_return", VK_RETURN } { @"img:icon_key_return", VK_RETURN | KBDEXT }
}; };
@ -110,23 +110,23 @@ struct ButtonItem cursorKeysItems[24] =
{ @"", KEY_SKIP }, { @"", KEY_SKIP },
{ @"", KEY_SKIP }, { @"", KEY_SKIP },
{ @"", KEY_SKIP }, { @"", KEY_SKIP },
{ @"img:icon_key_arrow_up", VK_UP }, { @"img:icon_key_arrow_up", VK_UP | KBDEXT },
{ @"", KEY_SKIP }, { @"", KEY_SKIP },
{ @"", KEY_SKIP }, { @"", KEY_SKIP },
{ @"Fn", KEY_SHOW_FUNCVIEW }, { @"Fn", KEY_SHOW_FUNCVIEW },
{ @"", KEY_SKIP }, { @"", KEY_SKIP },
{ @"img:icon_key_arrow_left", VK_LEFT }, { @"img:icon_key_arrow_left", VK_LEFT | KBDEXT },
{ @"", KEY_SKIP }, { @"", KEY_SKIP },
{ @"img:icon_key_arrow_right", VK_RIGHT }, { @"img:icon_key_arrow_right", VK_RIGHT | KBDEXT },
{ @"img:icon_key_backspace", VK_BACK }, { @"img:icon_key_backspace", VK_BACK },
{ @"123", KEY_SHOW_NUMPADVIEW }, { @"123", KEY_SHOW_NUMPADVIEW },
{ @"", KEY_SKIP }, { @"", KEY_SKIP },
{ @"", KEY_SKIP }, { @"", KEY_SKIP },
{ @"img:icon_key_arrow_down", VK_DOWN }, { @"img:icon_key_arrow_down", VK_DOWN | KBDEXT },
{ @"", KEY_SKIP }, { @"", KEY_SKIP },
{ @"img:icon_key_return", VK_RETURN } { @"img:icon_key_return", VK_RETURN | KBDEXT }
}; };

View File

@ -24,7 +24,7 @@
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>APPL</string> <string>APPL</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>1.0</string> <string>1.0.0</string>
<key>CFBundleSignature</key> <key>CFBundleSignature</key>
<string>????</string> <string>????</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>