Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6630405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:23:57+00:00 2026-05-25T22:23:57+00:00

<p:commandButton id=cmdCancel value=#{label.cancel} action=cancel/> <p:hotkey bind=Alt+C action=cancel /> Hi , I have one button

  • 0
<p:commandButton id="cmdCancel" value="#{label.cancel}" action="cancel"/>
  <p:hotkey bind="Alt+C" action="cancel" />

Hi ,
I have one button cancel and i binded it to short cut key “Alt+C” (refer above code) in prime faces.

And when i use press short cut key “Alt+C”, it perform the cancel action and
but it also open the browser favorites menu on pressing the “Alt+C”.

How can i stop this opening browser operation?Please suggest me any solution,…….

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T22:23:58+00:00Added an answer on May 25, 2026 at 10:23 pm

    I guess that you simply can not override some of the browser’s hardwired default hotkeys.
    Think of pressing Alt+F4 to close the browser window etc.

    Even the normal HTML hotkey attribute is not guaranteed to work if the browser already does something else when pressing the hotkey combination.

    My answer is thus; Do not rely on hotkeys in a website to work at all.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I have a simple button: <ice:panelGroup> <ice:commandButton value=foobar action=#{fileManager.openNoFlashVisiblePopup} /> </ice:panelGroup> Is it
I have an a4j:commandButton which looks like this <a4j:commandButton id=stopBtn type=button reRender=lastOp action=#{MyBacking.stop} value=Stop
This is the submit button: <h:commandButton actionListener=#{regBean.findReg} action=#{regBean.navigate} value=Search /> This is the form:
I know that this is how to save a record <apex:commandButton action={!save} value=Save/> I
I have this commandButton : <p:commandButton value=View/Edit onclick=bar.show() oncomplete=bar.hide(); dataSetUserDialog.show(); actionListener=#{dataStoreBean.initUserLists}> <p:ajax event=? update=userSelect
index.xhtml <h:selectManyMenu style=height:70px value=#{bookBean.selectedBook}> <f:selectItems value=#{bookBean.books}/> </h:selectManyMenu> <h:commandButton action=#{bookBean.doClick} value=Submit /> BookBean.java List<SelectItem> books
how would one implement a back-button as a commandbutton that works universally? with back
When the following (PrimeFaces) button is pressed <p:commandButton value=Search actionListener=#{personController.searchPersons} update=resultTable/> I load a
<h:form> <h:commandButton value=Buy styleClass=button-buy actionListener=#{basketCount.incrementBasketCount} immediate=true> </h:commandButton> </h:form> jsf2 part: <li class=basket> #{basketCount.basketCount} </li>
When I include a 'disabled' attribute on an a4j:commandButton, the button's action is not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.