Displaying 20 results from an estimated 27 matches for "keydown".
2007 Jul 16
4
Problem with keypress event handling
...{
Event.stop(evt);
}
}
This code works fine with IE and Firefox, but doesn''t work with Opera,
for which the event is not actually stopped. Moreover, when we tried
to intercept the ''+'' character, we noticed that IE did return the key
code (as if the keydown event was fired) instead of the char code, as
expected for the keypres event. By looking at the code of the
prototype library, we noticed that actually the keydown event is
fired, which is not axactly what we expect when we intercept the
keypress event ;-) We don''t know if it is a bug, but...
2007 Dec 18
5
Event.fire()
Have anybody used Event.fire method appeared in v1.6. There are no
samples, references or even api for this method. I want to use it for
my needs and don''t know how.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group.
To post to this group, send email to
2006 Jan 27
0
RE: [prototype] [BUG] Event.stop doesn''t stop allkeystrokes on some browsers
> a little more digging into this and it appears it''s that different
> browsers
> handle the keypress at different times (from what I can see, there are
3
> events triggered when you press a key, keydown, keypress, and keyup).
I
> changed line 1531 to ''keypress'' from keydown and on all of the
browsers I
> tested (safari, opera, konqueror) it appeared to work fine, with the
> exception of opera, which still allowed the tab key through.
>
That''s good to know....
2007 Dec 09
5
capturing arrow keypress on IE7 with Prototype 1.6 doesn't work?
Hi!
does anyone know a fix for this?
in FF and Opera everything is fine, but in IE7 arrow keys are ignored.
thank you
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group.
To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To
2016 Jun 07
2
getGraphicsEvent on X11 and event queuing
...user
presses a key - yet without blocking further updates if no key has
been pressed.
Is anyone interested in fixing (1) and (2)? Or is there some other
library or workaround to solve my problems?
Here is some code I used to play around with these functions:
X11(type="Xlib");
keydown = function(key) {
cat("Got key: ",key);
lastkey <<- key
}
setGraphicsEventHandlers(onKeybd = keydown);
plot(c(0,0));
getGraphicsEvent();
Well, I think it's great that getGraphicsEvent exists at all, and want
to salute Duncan Murdoch who is li...
2006 Jan 27
1
[prototype] [BUG] Event.stop doesn''t stop all keystrokes on some browsers
attached is an html file I used to test the bug. the top text box should not
allow you to type anything, not tab, not enter, nothing. bottom text box
should work fine.
requires prototype.js and includes jslog for jslog.info although it only
occurs in one place, I just wanted to make sure the event was firing without
having to use alerts :)
tested browsers/platforms:
opera: mac / win / lin:
2006 Feb 14
4
Scrollbar in Autocomplete List
Hi all,
Firstly is there a way to search the archives?
Second I was wondering if there is a way to implement a scrollbar on the
list that occurs when you use autocomplete. I have some lists that are
very long so I would like to shorten them but still have all the options.
Regards,
-----------------------
Iggy Sandejas
D-Frag Solutions
http://www.dfrag.com.au
-----------------------
2016 Jun 07
0
getGraphicsEvent on X11 and event queuing
...updates if no key has
> been pressed.
>
> Is anyone interested in fixing (1) and (2)? Or is there some other
> library or workaround to solve my problems?
>
> Here is some code I used to play around with these functions:
>
> X11(type="Xlib");
>
> keydown = function(key) {
> cat("Got key: ",key);
> lastkey <<- key
> }
>
> setGraphicsEventHandlers(onKeybd = keydown);
>
> plot(c(0,0));
> getGraphicsEvent();
>
> Well, I think it's great that getGraphicsEvent exists a...
2009 Jul 16
2
[PATCH server] updated anyterm/ovirt integration
...function key_ev_stop(ev) {
+ // We want this key event to do absolutely nothing else.
+ ev.cancelBubble=true;
+ if (ev.stopPropagation) ev.stopPropagation();
+ if (ev.preventDefault) ev.preventDefault();
+ try { ev.keyCode=0; } catch(e){}
+}
+
+function key_ev_supress(ev) {
+ // We want this keydown event to become a keypress event, but nothing else.
+ ev.cancelBubble=true;
+ if (ev.stopPropagation) ev.stopPropagation();
+}
+
+
+// When a key is pressed the browser delivers several events: typically first a keydown
+// event, then a keypress event, then a keyup event. Ideally we'd just...
2016 Jun 09
3
getGraphicsEvent on X11 and event queuing
...e interested in fixing (1) and (2)? Or is there
>> some other library or workaround to solve my problems?
>>
>> Here is some code I used to play around with these
>> functions:
>>
>> X11(type="Xlib");
>>
>> keydown = function(key) { cat("Got key: ",key); lastkey <<- key }
>>
>> setGraphicsEventHandlers(onKeybd = keydown);
>>
>> plot(c(0,0)); getGraphicsEvent();
>>
>> Well, I think it's great that getGraphicsEvent exists at...
2008 May 26
9
App#process_message
how can rewrite the App # process_message to treat the messages of the
system?
wxruby
--
Posted via http://www.ruby-forum.com/.
2006 Mar 03
11
event.keyCode broken in prototype?
I ran 2 tests. One using proto''s Event.observe, and another using an
in-line handler of the "keydown" event in a textbox.
Using .bindAsEventListener, the event.keyCode is always returning a
capital letter, no matter what. The in-line event handler returns
lowercase vs. uppercase correctly... What''s going on?
I guess I find it hard to believe no one has tried capturing keyboar...
2009 Mar 13
2
Sending input events to background applications in Win32
Our goal is the create a application sharing system that allows users to drag the applications off-screen into other people's desktops for them to use while maintaining control of the local desktop. Currently we plan to implement it by creating a virtual screen and placing the shared application there. VNC will then be used to stream windows to peers and input will be routed over.
The problem
2006 Apr 20
0
text_field_with_auto_complete onclick show dropdown with all options
How could I implement this ... maybe onclick set the value of the text
field = '' '' then somehow trigger keydown/up event?
Thanks
Bruce
2006 Feb 08
1
AJAX Event Handlers, like shift key pressing...
Hey everyone,
I thought I''d seen a demo of an AJAX app that responded to control
key presses, like performing a different action when the shift key is
pressed. What I''d really like to do is have a div change when the
shift key is pressed (to change the text of the link inside it to
indicate what new action will occur when that link is clicked with
shift held down). Is
2006 Jun 16
1
mask input fields
how to mask input fields? like
my mask = ''## / ####''
when user type it will put / after the second char . and bla bla bla
have ror a helper for do it? or, someone knows a good js code for it?
tks
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2006 May 18
1
Event.observe problem
Hello there, i have a textbox, i fill the textbox with a date from a
javascript popup calendar, im using the like this
Event.observe(''myTextBoxId'', ''change'', function(){ alert(''epale!'');});
and is not working, if i put the alert inside the input element in the
onchange attribute it works, is that a prototype bug?
--
//
// Ing. Francisco
2006 Apr 20
0
text_field_with_auto_complete onclick show dropdown with all options
How could I implement this ... maybe onclick set the value of the text
field = '' '' then somehow trigger keydown/up event?
Thanks
Bruce
2020 Jul 28
2
Phabricator down for maintenance tonight
...#39;differential-inline-comment',
> 'differential-inline-collapse'],
> + oncollapse);
> + // END
> +
> var ondraft = JX.bind(this, this._onInlineEvent, 'draft');
> JX.Stratcom.listen(
> 'keydown',
> @@ -2491,6 +2504,12 @@ JX.install('DiffChangesetList', {
> case 'delete':
> inline.delete(is_ref);
> break;
> + case 'reply':
> + inline.reply();
> + break;
> + case 'collapse&...
2006 Apr 07
3
Pointer position on keypress event?
Hi.
Is there any straightforward way to tell pointer position (x, y)
upon keypress? In original wxWidgets, wxKeyEvent supports GetX()
and GetY() methods, but wxRuby''s KeyEvent object does not have
one. I also checked with event.methods and event.instance_variables.
Do I need to keep track of pointer position by evt_motion?
--
Taisuke Yamada <tyamadajp@spam.rakugaki.org>,