Click here to Skip to main content
15,905,614 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
On my purchase form user have to fill product name in textbox if user want to find product details press Ctrl+F and find details of products on pop up form

is it possible to do like that?
Posted
Updated 23-Sep-13 19:55pm
v3
Comments
BillWoodruff 24-Sep-13 6:26am    
Yes, you can do that. What have you tried so far ? Please post your code and describe any problems you are having.

Don't try to do it. Ctrl+F is reserved by many browsers for search on a current page. Besides, pop-ups is evil, in most cases.

—SA
 
Share this answer
 
Hi Devaa, u can do this with Access key to a control, when ever u press Alt+ access key assigned to the control, then it will automatically, launches the screen for that event. but I am not sure about Crtl+access key, I have done with Alt+access key.

here is sample code

XML
<Button IsEnabled="True" Name="SignatureOkButton" Margin="5,10,5,0" Height="25" Width="80" Click="Button_Click" HorizontalAlignment="Right">
                <StackPanel Orientation="Horizontal">
                    <Image Name="imgSign" Source="Images/ImgSingleSelect.bmp" Margin="0,0,5,0"/>
                    <TextBlock Name="txtSign">
                        <Underline>O</Underline>K
                    </TextBlock>
                    <AccessText Text="_O" Height="0" Width="0"/>
                </StackPanel>
</Button>


When I click on Alt+O, then the event what is written for this button , will raise from the access key with Alt button.

Try this. Hope this helps

any doubts, please post here,
Thanks
Ganesh
 
Share this answer
 
Comments
Abhinav Gauniyal 25-Sep-13 16:38pm    
Good example :)
Quote:
Don't try to do it. Ctrl+F is reserved by many browsers for search on a current page. Besides, pop-ups is evil, in most cases.

—SA


Well this is sure , but if you do want to go with it , try MouseTrap:

https://github.com/ccampbell/mousetrap[^]

or jwerty:

http://keithcirkel.co.uk/jwerty/[^]

or shortkeys:

https://github.com/riklomas/shortkeys[^]

Hope i helped :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900