search for: key_return

Displaying 6 results from an estimated 6 matches for "key_return".

Did you mean: eh_return
2005 May 16
1
TEXTFIELD_ENTER_ONLY doesn''t work
Hi Lyle, I noticed that when creating a FXTextField with TEXTFIELD_ENTER_ONLY it still sends messages to its target when other keys than KEY_Return are pressed. I usually create a textfield this way: textfield = FXTextField.new(self, 50, self, ID_INPUT, TEXTFIELD_ENTER_ONLY) textfield.setText(aStr) textfield.setFocus textfield.move(x, y, w, h) textfield.show This way only the enter key should send the message SEL_KEYPRESSED/SEL_KEYRELEASED...
2007 Feb 18
11
Tabulation with ENTER key
...o do so far: <input type="text" id="id1" name="field1" value=""> <script type="text/javascript"> Event.observe(''id1'', ''keypress'', function(event) { if (event.keyCode == Event.KEY_RETURN) { Event.stop(event); $(''id2'').focus(); $(''id2'').select(); }}); </script> <input type="text" id="id2" name="field2" value=""> On first input field an event observer catches RETURN keypress...
2006 Mar 13
0
Bug with Ajax.Autocompleter in Safari 2.0.3?
...tIndicator(). It seems that this is because Safari sends a 0 for the shift-tab keyCode, rather than a 9 which you would expect. I was able to fix it in my local copy of controls.js by simply adding another check for Safari and keyCode of 0 in addition to the existing checks for KEY_TAB and KEY_RETURN. Has anyone else seen this? It''s probably worth a bug report for Safari too if this is really what''s going on. Thanks, Matt
2006 Jan 27
0
RE: [prototype] [BUG] Event.stop doesn''t stop allkeystrokes on some browsers
...b key through. > That''s good to know. I was wondering why my capturing of the Enter key was not working on Opera. It worked on IE and Firefox, though. I had something along these lines: Event.observe(input, ''keypress'', function(event) { if (event.keyCode == Event.KEY_RETURN) { Event.stop(event); /* more code */ return false; } }); And that prevented the form from submitting in everything except Opera, although I didn''t test Safari. Let me know if you figure out a way to stop Opera. Btw, the keydown event isn''t what fires the form submission, which...
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...ition.clone(this.update, this.iefix, {setTop:(!this.update.style.height)}); this.iefix.style.zIndex = 1; @@ -150,15 +150,15 @@ Autocompleter.Base = Class.create({ Event.stop(event); return; } - else - if(event.keyCode==Event.KEY_TAB || event.keyCode==Event.KEY_RETURN || + else + if(event.keyCode==Event.KEY_TAB || event.keyCode==Event.KEY_RETURN || (Prototype.Browser.WebKit > 0 && event.keyCode == 0)) return; this.changed = true; this.hasFocus = true; if(this.observer) clearTimeout(this.observer); - this.ob...
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply to this email, as some of the replaced lines are too long, so git won't let me send the email. However, there is nothing wrong with that patch, and it should be applied in the sequence listed below. Note also that I assume this will be tested on a clean f11 install, rather than an upgrade of an existing ovirt server