search for: keypress

Displaying 20 results from an estimated 261 matches for "keypress".

2007 Jul 16
4
Problem with keypress event handling
...all, we are writing a cross browser Javascript control that enhances the HTML text input element in order to accept only digits (more or less). Supposing that ''domText'' is the DOM element corresponding to the HTML text input, we wrote the following: Event.observe(domText, "keypress", this.onKeyPress.bindAsEventListener(this)); where this.onKeyPress = function(evt) { var evtc = evt.keyCode; // char code for IE and Opera if (evtc == 0 || evtc == null) { // Firefox evtc = evt.charCode; } if (evtc >= 48 && evtc <= 57) {...
2010 Apr 09
2
Problem detecting keypresses in FXTable
I''m using an RXTable in my application and I would like to be able to select a row and then press the Delete key to delete the selected row. This does not seem to work, however, as apparently keypresses are not initially recognized. In my FXTable derived class I have: connect(SEL_KEYRELEASE) do |sender, selector, event| puts "code = #{''%X'' % event.code}" case event.code when KEY_Delete, KEY_KP_Delete puts "Delete key hit&quot...
2006 Mar 29
2
Drag/Drop and KeyPress
Hi! is it possible to make a drag dependent on a KeyPress event? I couldn''t find any information on that on the script.aculo.us website. My scenario is the following: I have a tree with several nodes (like windows explorer). Right now i use Drag & Drop to move a node below a new parent. Now i want to implement a copy mechanism which allow...
2006 Aug 13
2
Catching "keypress" event with observe_field
...e a div when a key is pressed in a text field. Eg. : <input type="text" id="field"> <div id="area"></div> <%= observe_field :field, :url => {:action => :myAction}, :update => :area, :with => "text_param", :on => ''keypress'' %> This does not seem to work, and I can''t understand why. Does someone have any clue on what I am doing wrong ? Thanks in advance -- Posted via http://www.ruby-forum.com/.
2009 Mar 25
1
"wine explorer ..." eats CTRL keypresses!
...crash-prone this way. Here is the issue. When I run the game directly through wine without using the 'explorer' command, my keyboard works correctly. However, when I run wine with 'explorer', I can no longer use the CTRL key in-game. The desktop manager (gdm) still catches CTRL keypresses. In addition, key combinations like ALT+F1, which work correctly in game in the former instance, are sent directly to gdm in the latter. How can I make it so that Wine will send the keypresses to Eve first, then onto GDM? My setup: Wine 1.1.17 + model patch (installed using apt-get source win...
2006 Mar 13
2
Keypress events with no AJAX needed
...or example, having a text field that just echos below what the user types. Is this the only way to do it? <div id=''word_panel''> <%= text_field_tag ''user_text''%> <%= javascript_tag("Event.observe(''user_text'', ''keypress'', function(event) { Element.update(''stylized_word'', $F(Event.element(event)));})")%> <div id=''show_word''></div> Thank you! Chris -- Posted via http://www.ruby-forum.com/.
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
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....
2005 Jun 21
0
Keypress delay & grouping
...interval. nanosleep() and similar delay functions should be very useful so long as they're not so short as to busywait but instead wait for the system clock. This introduces a variable delay that greatly reduces the information from timing analysis. I believe sshd already can handle multiple keypresses per packet, but I did get one to choke around 1500 after pasting in 10KB. I inserted a usleep() in channel_output_poll() [not the best place but I couldn't get it to work in clientloop.c] and it runs fine for me, but I may need to make the delay a bit smarter. -- Robert
2003 Dec 14
0
outbound dialing / wait for keypress?
...and so on until one is answered at which point the incoming and outgoing calls are connected. my problem is how to handle the case where an outbound call is answered by, say, an answering machine. ideally, i'd like Dial to work such that it can be configured to play a recording and wait for a keypress before considering the call answered. however, this doesn't seem to be the case. i imagine that someone else has already encountered this problem - if so, does anyone know what the solution is (i've already checked the various resources, and haven't found anything). if not, does anyone...
2008 Jan 16
1
Small doubts with clonePosition, Keypress and this
...D'') { element.clonePosition(box); } } Is anything wrong? Well, I also tried to do the following, staying on the cell if press SHIFT + CLICK copy the text to clipboard, but this feature doesn''t works for me directly: Event.observe(document, ''keypress'', function (event) { if (event.keyCode == 42 || event.keyCode == 54) alert("ok"); }); And what happend with javascript "this" value, becouse Event.observe(document, ''mouseover'', function (event) {} Is not the same that <a href="" onmo...
2012 Sep 06
1
Menu system bug - MENU DEFAULT not working
Hello, I'm reporting a bug, see attached syslinux.cfg I'm using submenu entries to emulate checkbox inputs. The idea is simple, there are submenus generated for all possible cases, and each Enter keypress loads appropriate submenu section. The logic of the menu is correct. Just syslinux has some bug. It doesn't set MENU DEFAULT properly for all submenus. If your first Enter keypress is on OptionA, it will work. However if your first Enter keypress is on OptionB for example, it loads correct su...
2008 Feb 29
1
Getting Keypressed State in rgl
Dear Rglers, when using a callback in rgl (Windows, if it matters) http://finzi.psych.upenn.edu/R/library/rgl/html/callbacks.html I would like to get the Asynchronous keyboard status (as least Shift/Control, but preferably other key) to set markers in a plot. getGraphicsEvents seems to be limited to normal graphics windows. Dieter
2007 May 29
0
Play sound file on keypress (bridged call)
Hey People, Sorry if this has been covered before but for the life of me I couldn't find the answer. So if someone could just point me in the right direction that would be greatly appreciated. Is it possible to set up in the dial plan to assign keypad numbers a sound file on a bridge call. I know that you can do it if the user just rings into the dial plan but was wondering if anyone
2007 Oct 24
0
Two DTMF tones on keypress with Handsfree cell
Hello, I am using Asterisk SVN, a cellular phone, and chan_mobile to run a small home PBX with two analog telephones connected to a Linksys ATA using SIP. It works great (except for some Bluetooth adapter bugs that I am still trying to beat...seems the misaligned audio detection still needs work), but I have encountered an interesting issue. If I am using an automated system that accepts input
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 th...
2004 Sep 22
1
7960 SIP 7.2 keypress (not DTMF) problem
Since upgrading to 7.2, I've noticed a random problem where I dial a number and hear all the correct tones in the handset, but the display won't show all the numbers I dialed. So you sit there waiting for the dialplan to kick the call off (b/c you heard the proper amount of tones played and think it's all good) but the phone is just sitting there b/c it somehow "missed"
2005 Sep 01
1
How to require a keypress on answer?
[apologies if this comes through twice - the original doesn't seem to have shown up even after 16 hours] In the handling of agents, when using AgentCallbackLogin, a call placed to an agent needs to be accepted by the agent pressing the '#' key. I'm trying to replicate that kind of operation in a non-agent scenario: I want to call Dial() from my dialplan, play an announcement to
2008 Jul 23
3
Trouble Playing message file via Perl AGI
...aving trouble getting my program to play a message and wait for a keystroke. I am able to use this code to play the file, so I know that the $msg variable points to a valid sound file: $result = $agi->exec("background $msg"); But of course, this doesn't allow me to capture any keypresses. So I tried this: $agi->stream_file($msg, "0123456789", 0); The console indicates that it's playing the message, but it then skips to the next AGI instruction and nothing gets played. Then I tried to use the get_data() method. It turns out that I had to put two of them in...
2016 Jul 25
2
getGraphicsEvent() alternative for cairo graphics device?
Hi all, I'm writing an interactive plotting function for viewing fMRI datasets. Currently, I get keypresses using grDevices::getGraphicsEvent(). Unfortunately getGraphicsEvent() only supports the X11(type="Xlib") graphics device on Unix systems. The Xlib device doesn't support buffering (i.e. dev.hold() and dev.flush()), so redrawing the plots causes lots of flickering. Is there a way t...