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

  • Home
  • SEARCH
  • 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 7042035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:07:09+00:00 2026-05-28T02:07:09+00:00

I have query regarding selected key in JavaScript. I am developing a sql query

  • 0

I have query regarding selected key in JavaScript.
I am developing a sql query editor a web based application. Here users are required to execute the query using a text box. when they execute a query, the ajax functionality fetches the result and displays them.

Now my requirement is that the query should be executed by pressing key combination of ctrl+enter. I know we can achieve keycode of one key, But how for second key ??

the ctrl+enter key combination is the same functionality as when we execute query in oracle database.

i.e. on pressing the correct key combination of ctrl+enter the query should be executed.

And help is appreciated

  • 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-28T02:07:10+00:00Added an answer on May 28, 2026 at 2:07 am
    <!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.0Transitional//EN">
    <HTML>
    <HEAD>
    <TITLE>NewDocument</TITLE>
    <METANAME="Generator"CONTENT="EditPlus">
    <METANAME="Author"CONTENT="">
    <METANAME="Keywords"CONTENT="">
    <METANAME="Description"CONTENT="">
    <script language="JavaScript">
    functionisCtrlEnter(e)
    {
        if(window.event){
            if(window.event.ctrlKey&&window.event.keyCode==13){
                //writecodetoclicksomehiddenbutton(useajax)
                alert('isCtrlEnter');
                return false;
            }
        }
    else
    {
    if(e.which==13&&e.ctrlKey){
                //writecodetoclicksomehiddenbutton(useajax)
                alert('isCtrlEnter');
                return false;
                }
    }
    }
    </script>
    </HEAD>
    
    <BODY>
    <input type="text" onkeyup="return isCtrlEnter(event);"/>
    </BODY>
    </HTML>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a query that I'm executing from a .NET application to a SQL
I have a query regarding launching a native application from a link of website
I have been having a query regarding writing unit tests for web methods which
I have a query about transaction logs regarding sql server 2005-08. When is a
I have a query regarding the directory returned from Path.GetTempPath() function. It returns C:\Documents
I have this query in sql server 2000: select pwdencrypt('AAAA') which outputs an encrypted
I have query regarding the disposing of an object. The scenario is as follows.
I have one query regarding the (UITextfield and Webservice) for example When i start
I have a query regarding showing a video (which is stored on server) on
I have a query regarding how delegates work. My understanding was that delegates take

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.