You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm going to take the 'showstopper' tag off, but not because this isn't something that should eventually happen. But I don't think a lack of comments on a different keyboard layout qualifies as a showstopper. This'll eventually get fixed, but I've got bigger fish to fry at the moment.
I have the same problem, but I found out that it happens with all the characters that are achieved via Alt + something in some keyboards (mine is in Spanish). Some characters that I cannot write are:
@
{
}
[
]
\
Is it a showstopper or no? It depends on your locale. For me, it actually is a showstopper!
Awesome, thanks. I don't think I'm going to be able to fix this bug today, but it's on the high-priority list.
What's better: I just managed to reproduce the error. Apparently it's not just foreign keyboards; hitting alt+3 on mine should give a £, and does in Shoes, but not in Hackety. Sweet.
We're intercepting keypresses to handle the shortcuts, but unrecognized keypresses simply aren't being handled. My initial simple fix just inserts an 'alt_3' into the body, so I'm close, but not quite there...
This also raises a larger issue: what happens when a shortcut and an international keyboard collide? Hm...
... Okay, apparently this is going to require a pretty big re-write of the editor code. So I can't promise this will come as quickly as I was going to try. :/
I can't (really) reproduce this fault. I'm using the newest hacketyhack (could you please try that?) and changed my keyboard layout to both UK Mac and the default spanish layout.
I can't add a # with Alt + 3 (for me the Alt left to my space bar), but this doesn't work in any editor I've tested (gedit and libre office writer) either. I can however add # everywhere (also hacketyhack editor) with AltGr + 3 (ALTGR is the ALT key to the right of my spacebar).
So I'd really appreciate feedback on what I might be doing wrong or if maybe it already works in the current master version.
I can confirm that on a mac book pro, UK keyboard, Snow Leopard, Shoes 3.0 and Hackety 1.0, there seems to be no way to acheive '#'. Alt + 3 is the default which should work - it doesn't - either does alt + shift + 3. Still a bug.
I can confirm that the issue is still there in the latest master of HH (43ccd49), using Shoes 3.1. The editor won't accept any character that requires the Alt key.
Is the issue still related to unrecognized keypresses not being handled ? I'm willing to try to solve this issue ; if you have any advice on how forwarding the keypresses to the default behavior, that would be great :)
Well, to be honest I am more interested in Hackety (as a wrapper around Shoes for educational purposes) than in Shoes. However I read the posts, docs and issues on Shoes 4, and it sure looks hazardous to start improving Hackety without Shoes 4 being ready :)
That said, I am considering working on a bugfix release of Hackety ; something like fixing a few of the most visible issues (excluding the Shoes-related bugs). New users to Hackety would get a more recent code than the 1.0.1 release, with working samples, correct login to hackety.com (hopefully), and so on. And I could probably spend some time on Shoes 4 afterwards.
Does this sound like a reasonable goal, or do you think Shoes 4 is a prerequisite for anything done on Hackety?
If you want to work on such a thing, I'd gladly release it. I just personally can't find the time to invest when I know things are changing. I have a really full plate. I'd love the help though.
Activity
steveklabnik commentedon Jun 27, 2010
Is this in the main editor, or in Try Ruby?
thehack commentedon Jun 27, 2010
It's in the main editor. Now, I have a UK layout keyboard, to achieve '#', I press alt +3.
I wonder if it's a conflict with the alt key being used for other shortcuts in Shoes?
steveklabnik commentedon Jun 27, 2010
Ah, that might be it. I can type #s here.
I'm going to take the 'showstopper' tag off, but not because this isn't something that should eventually happen. But I don't think a lack of comments on a different keyboard layout qualifies as a showstopper. This'll eventually get fixed, but I've got bigger fish to fry at the moment.
cesarsalazar commentedon Aug 20, 2010
Hello!
I have the same problem, but I found out that it happens with all the characters that are achieved via Alt + something in some keyboards (mine is in Spanish). Some characters that I cannot write are:
@
{
}
[
]
\
Is it a showstopper or no? It depends on your locale. For me, it actually is a showstopper!
Happy hacking!
steveklabnik commentedon Aug 20, 2010
ouch. That's pretty rough.
This i something we're certainly going to have to address soon.
cesarsalazar commentedon Aug 20, 2010
Let me know if I can be of any help. I can be a tester at the least.
atestu commentedon Oct 31, 2010
Same problem with a French keyboard. "|" is not working either. My little brother has a TextEdit file with the special characters… ;)
steveklabnik commentedon Oct 31, 2010
Okay, I've been digging in over the past few days, I'll try to bump this up on my priority list.
Could anyone with this issue try this in just plain old Shoes: http://shoesrb.com/downloads
You can use this script: http://gist.github.com/656881
This'll help me figure out if this is a bug in Hackety Hack, or just Shoes.
cesarsalazar commentedon Oct 31, 2010
I just tried your script on Shoes 2 and it seems to work flawlessly.
Some keystrokes I tried:
Alt + 3 > #
Alt + 2 > @
Alt + ^ > [
Alt + + > ]
Alt + 1 > |
Thanks for jumping on this one!
steveklabnik commentedon Oct 31, 2010
Thanks for that... so it would seem that I'm doing something funky inside the Hackety code to the keystrokes, then.
Is there a reason why you can't try this on Shoes 3?
cesarsalazar commentedon Oct 31, 2010
I can, and it also works on Shoes 3.
steveklabnik commentedon Oct 31, 2010
Awesome, thanks. I don't think I'm going to be able to fix this bug today, but it's on the high-priority list.
What's better: I just managed to reproduce the error. Apparently it's not just foreign keyboards; hitting alt+3 on mine should give a £, and does in Shoes, but not in Hackety. Sweet.
steveklabnik commentedon Nov 1, 2010
Okay, results of further investigation:
Basically, the problem is here: http://github.com/hacketyhack/hacketyhack/blob/master/app/ui/editor/editor.rb#L262
We're intercepting keypresses to handle the shortcuts, but unrecognized keypresses simply aren't being handled. My initial simple fix just inserts an 'alt_3' into the body, so I'm close, but not quite there...
This also raises a larger issue: what happens when a shortcut and an international keyboard collide? Hm...
steveklabnik commentedon Nov 1, 2010
... Okay, apparently this is going to require a pretty big re-write of the editor code. So I can't promise this will come as quickly as I was going to try. :/
Still working on it, though.
PragTob commentedon Mar 18, 2012
Hello everyone,
I can't (really) reproduce this fault. I'm using the newest hacketyhack (could you please try that?) and changed my keyboard layout to both UK Mac and the default spanish layout.
I can't add a
#with Alt + 3 (for me the Alt left to my space bar), but this doesn't work in any editor I've tested (gedit and libre office writer) either. I can however add#everywhere (also hacketyhack editor) with AltGr + 3 (ALTGR is the ALT key to the right of my spacebar).So I'd really appreciate feedback on what I might be doing wrong or if maybe it already works in the current master version.
Cheers
thehack commentedon Mar 20, 2012
I can confirm that on a mac book pro, UK keyboard, Snow Leopard, Shoes 3.0 and Hackety 1.0, there seems to be no way to acheive '#'. Alt + 3 is the default which should work - it doesn't - either does alt + shift + 3. Still a bug.
kemenaran commentedon Jun 8, 2012
I can confirm that the issue is still there in the latest master of HH (43ccd49), using Shoes 3.1. The editor won't accept any character that requires the Alt key.
Is the issue still related to unrecognized keypresses not being handled ? I'm willing to try to solve this issue ; if you have any advice on how forwarding the keypresses to the default behavior, that would be great :)
steveklabnik commentedon Jun 8, 2012
yep, same thing.
Honestly, if you have the spare OSS cycles, helping out with the development of Shoes 4 would be the most helpful thing: http://blog.steveklabnik.com/posts/2012-05-25-shoes-4-work-is-starting--get-involved
I'm basically not working on Hackety until Shoes 4 is done, and then re-doing major parts of it. I'd love help with any and all of that.
kemenaran commentedon Jun 12, 2012
Well, to be honest I am more interested in Hackety (as a wrapper around Shoes for educational purposes) than in Shoes. However I read the posts, docs and issues on Shoes 4, and it sure looks hazardous to start improving Hackety without Shoes 4 being ready :)
That said, I am considering working on a bugfix release of Hackety ; something like fixing a few of the most visible issues (excluding the Shoes-related bugs). New users to Hackety would get a more recent code than the 1.0.1 release, with working samples, correct login to hackety.com (hopefully), and so on. And I could probably spend some time on Shoes 4 afterwards.
Does this sound like a reasonable goal, or do you think Shoes 4 is a prerequisite for anything done on Hackety?
steveklabnik commentedon Jun 12, 2012
If you want to work on such a thing, I'd gladly release it. I just personally can't find the time to invest when I know things are changing. I have a really full plate. I'd love the help though.