Skip to content

Commit

Permalink
- Alt+Key on OS X can type characters so pass on the character code
Browse files Browse the repository at this point in the history
- Remove sharpcompress virtual directories - should be implemented by users of 
the library, to keep pre requisites to a minimum.
- Added ignores
  • Loading branch information
cwensley committed Jun 2, 2011
1 parent e1e37f9 commit 6e7db15
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 22 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.user
*.pidb
bin/
obj/
2 changes: 1 addition & 1 deletion Source/Eto.Platform.Mac/Forms/Controls/DrawableHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public override void KeyDown (NSEvent theEvent)
//Console.WriteLine("\t\tkeymap.Add({2}, Key.{0}({1})); {3}", theEvent.Characters, (int)keyChar, theEvent.KeyCode, theEvent.ModifierFlags);
//Console.WriteLine("\t\t{0} {1} {2}", key & Key.ModifierMask, key & Key.KeyMask, (NSKey)keyChar);
if (key != Key.None) {
if ((int)keyChar < 127 && (int)keyChar >= 32 && ((modifiers & ~Key.Shift) == 0))
if ((int)keyChar < 127 && (int)keyChar >= 32 && ((modifiers & ~(Key.Shift | Key.Alt)) == 0))
kpea = new KeyPressEventArgs (key, keyChar);
else
kpea = new KeyPressEventArgs (key);
Expand Down
12 changes: 6 additions & 6 deletions Source/Eto.Platform.iOS/Eto.Platform.iOS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,6 @@
<Folder Include="Forms\Controls\" />
<Folder Include="Threading\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Eto\Eto.iOS.csproj">
<Project>{83452633-C37C-490F-852A-3ADE0A2CF0D4}</Project>
<Name>Eto.iOS</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Compile Include="Generator.cs" />
<Compile Include="Drawing\BitmapHandler.cs">
Expand Down Expand Up @@ -115,4 +109,10 @@
<Compile Include="Forms\Controls\ScrollableHandler.cs" />
<Compile Include="Threading\ThreadHandler.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Eto\Eto.iOS.csproj">
<Project>{83452633-C37C-490F-852A-3ADE0A2CF0D4}</Project>
<Name>Eto.iOS</Name>
</ProjectReference>
</ItemGroup>
</Project>
15 changes: 0 additions & 15 deletions Source/Eto/IO/EtoDirectoryInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,6 @@ public static IEnumerable<VirtualDirectoryType> VirtualDirectoryTypes
get { return virtualDirectoryTypes.Values; }
}

static EtoDirectoryInfo()
{
/*#if !MOBILE
AddVirtualDirectoryType<RarDirectoryInfo>(".rar");
AddVirtualDirectoryType<ZipDirectoryInfo>(".zip");
#endif*/
AddVirtualDirectoryType<SharpCompressDirectoryInfo>(".zip");
AddVirtualDirectoryType<SharpCompressDirectoryInfo>(".rar");
/* doesn't actually work...
AddVirtualDirectoryType<SharpCompressDirectoryInfo>(".gz");
AddVirtualDirectoryType<SharpCompressDirectoryInfo>(".tar");
AddVirtualDirectoryType<SharpCompressDirectoryInfo>(".bz2");
*/
}

public EtoDirectoryInfo()
{
}
Expand Down

0 comments on commit 6e7db15

Please sign in to comment.