Kb.
Kb.

Reputation: 7400

ASP.NET: Function key shortcuts?

I recently participated a project that replaced a mainframe system with a web (asp.net 2.0, VS2005) system.
The 3270-terminals are still much used and I respect the IMS/CICS/Cobol application designers for their work.

Users like the web application, but one thing they keep ask for is:
Functionkeys and shortcuts that navigates directly to different web forms.

Do you know a way to implement function key shortcuts in asp.net that will be like 3270 function key actions?

We are using asp:menu as a content in master-page, but asp:item does not support the accesskey attribute:

<asp:SiteMapDataSource ID="_siteMapDataSource" runat="server"  ShowStartingNode="False" />

<asp:Menu ID="Menu1" runat="server"  DataSourceID="_siteMapDataSource" Orientation="Horizontal">
</asp:Menu>

Update: 24.jan 09: I liked @John Sheehan answer. Will implement it with the jQuery support in ASP.Net 3.5 SP1

Upvotes: 5

Views: 2244

Answers (2)

Rowland Shaw
Rowland Shaw

Reputation: 38130

you could take a look at the accesskey property as well...

Upvotes: 1

John Sheehan
John Sheehan

Reputation: 78104

There is nothing specific to ASP.NET for this since you would need to handle it with JavaScript. The easiest way would be to use a jQuery plugin like js-hotkeys

Upvotes: 4

Related Questions