LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ActiveX IE Control and the Enter button conflict

I have a VI that I modified from this site "LB Browser"
 
The problem is that when you are browsing and you strike the enter key as part of a page search function or some other page function.  The enter key is recieved in LV and LV performs some other operation.  For example my GUI has a back button so if I hit the enter key thinking it will do a search operation LV intercepts the key strike and could send the web page back 1 screen.
 
I know the focus is on the web page prior to hitting the enter key because I had just enter text in a web page text entry area.
 
Does anyone know how to force LV to ignore the enter key during the web page viewing?
 
Thanks in advance
Tim C.
1:30 Seconds ARRRGHHH!!!! I want my popcorn NOW! Isn't there anything faster than a microwave!
0 Kudos
Message 1 of 5
(2,984 Views)

Advanced>>Key navigation allows on a per control basis to link key actions to events such as button pushes.  I would susbect that if your application uses a OK button started as a template the enter wi pressing the OK and stopping yopur application.  Just a guess without seeing the code.  You can also use filter events on your application (Key down? event) but that is more work.

 

Paul

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 2 of 5
(2,982 Views)

I'm sorry,  I don't follow what your suggestion is,  could you clearify a bit?

 

Thanks

Tim C.

1:30 Seconds ARRRGHHH!!!! I want my popcorn NOW! Isn't there anything faster than a microwave!
0 Kudos
Message 3 of 5
(2,980 Views)
I a thinking you have linked key navigation to buttons.  To change this, right click on the buttong and choose the menu option Advanved >> Key navigation and remove the enter key from the button;s value change action.  Otherwise enter will press your "back button" and the action associated with the back event will occur.
 
Paul
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 4 of 5
(2,976 Views)
Cool,  Thanks!
1:30 Seconds ARRRGHHH!!!! I want my popcorn NOW! Isn't there anything faster than a microwave!
0 Kudos
Message 5 of 5
(2,974 Views)