bugGNU nano - Bugs: bug #30494, Key bindings don't support the...

 
 

bug #30494: Key bindings don't support the Shift modifier

Submitted by:  zeekay <zeekay>
Submitted on:  Tue 20 Jul 2010 12:31:44 AM UTC  
Votes:  100  
 
Severity: 3 - NormalStatus: Wont Fix
Assigned to: Benno Schulenberg <bens>Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Mon 29 Aug 2016 07:42:12 PM UTC, comment #11:

The Shift+Arrow keys now can be used to select text. The combinations of Shift+Ctrl+Letter are always the same as Ctrl+Letter -- they will not be separately rebindable.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Fri 22 Jul 2016 02:56:32 PM UTC, comment #10:

There is no way to distinguish Ctrl+Z from Shift+Ctrl+Z, Ctrl+X from Shift+Ctrl+X, etcetera. They send the exact same code. For the editing keys (Left, Right, Up, Down, and such) it is possible to distinguish the combination with Ctrl from the combination with Shift+Ctrl, and that might one day get used. But for the normal letter keys, no distinction is possible. So: "cant fix".

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Wed 18 Mar 2015 08:36:48 AM UTC, comment #9:

The problem is decribed here:
http://invisible-island.net/ncurses/ncurses.faq.html#modified_keys

Anonymous
Mon 24 Feb 2014 01:07:14 PM UTC, comment #8:

As Craig said, on any TTY ^M == Enter, and ^I == Tab. And he is probably right about ncurses not supporting Shift. So I would like to mark this bug as a "Can't fix", but Savannah doesn't know that status.

The second part of your report is more like a feature request: to be able to bind a key to a sequence of commands. Better post that as a separate "bug", if you still want it.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sun 24 Mar 2013 03:41:40 PM UTC, comment #7:

Just to follow up on this. The ^M = Enter issue is a limitation (or feature) of the tty and not being able to bind combinations with Shift is a limitation of ncurses. Fixes: unlikely.

Craig Barnes <craigbarnes>
Wed 29 Dec 2010 02:40:32 PM UTC, comment #6:

I second this issue. I am trying to create a set of keybindings to replicate common GUI app hotkeys (e.g. Ctrl+Shift+Z for redo) and it's impossible without shift.

Also, to elaborate on the original issue; trying to bind ^M also (erroneously?) binds the enter key to the same function.

Edit: apologies for the excessive mails I sent out - I didn't realise experimenting with the voting feature would send notifications until I had already sent a few.

Craig Barnes <craigbarnes>
Wed 29 Dec 2010 02:37:58 PM UTC, comment #5:

I second this issue. I am trying to create a set of keybindings to replicate common GUI app hotkeys (e.g. Ctrl+Shift+Z for redo) and it's impossible without shift.

Also, to elaborate on the original issue; trying to bind ^M also (erroneously?) binds the enter key to the same function.

Craig Barnes <craigbarnes>
Wed 29 Dec 2010 02:37:46 PM UTC, comment #4:

I second this issue. I am trying to create a set of keybindings to replicate common GUI app hotkeys (e.g. Ctrl+Shift+Z for redo) and it's impossible without shift.

Also, to elaborate on the original issue; trying to bind ^M also (erroneously?) binds the enter key to the same function.

Craig Barnes <craigbarnes>
Wed 29 Dec 2010 02:37:30 PM UTC, comment #3:

I second this issue. I am trying to create a set of keybindings to replicate common GUI app hotkeys (e.g. Ctrl+Shift+Z for redo) and it's impossible without shift.

Also, to elaborate on the original issue; trying to bind ^M also (erroneously?) binds the enter key to the same function.

Craig Barnes <craigbarnes>
Wed 29 Dec 2010 02:35:57 PM UTC, comment #2:

I second this issue. I am trying to create a set of keybindings to replicate common GUI app hotkeys (e.g. Ctrl+Shift+Z for redo) and it's impossible without shift.

Also, to elaborate on the original issue; trying to bind ^M also (erroneously?) binds the enter key to the same function.

Craig Barnes <craigbarnes>
Tue 20 Jul 2010 12:56:15 AM UTC, comment #1:

Similarly, I am unable to rebind ctrl+m.

zeekay <zeekay>
Tue 20 Jul 2010 12:31:44 AM UTC, original submission:

It would be really nice if we could use shift as a modifier for creating key bindings, like bind ^i vs ^I or some other sort of syntax so that the shift key can be defined as part of a binding. I also noticed some weird behavior binding ^i as it seems to rebind tab as well. It'd be nice if you could bind keys to jump to specific menus, for instance I'd like to rebind ctrl+r to automatically open the file browser if possible, which is normally ctrl+r followed by ctrl+t.

zeekay <zeekay>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bens (Posted a comment)
  • -unavailable- added by craigbarnes (Voted in favor of this item)
  • -unavailable- added by craigbarnes (Posted a comment)
  • -unavailable- added by zeekay (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 100 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 29 Aug 2016 07:42:12 PM UTCbensOpen/ClosedOpen=>Closed
    Fri 22 Jul 2016 02:56:32 PM UTCbensStatusConfirmed=>Wont Fix
      Assigned toNone=>bens
    Mon 24 Feb 2014 01:07:14 PM UTCbensStatusNone=>Confirmed
      SummaryKey bindings don\'t support shift modifier, behave oddly=>Key bindings don't support the Shift modifier
    Wed 29 Dec 2010 02:37:30 PM UTCcraigbarnesCarbon-Copy-=>Added craigbarnes

    Back to the top


    Powered by Savane 3.1-cleanup1