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

 
 

You are not allowed to post comments on this tracker with your current authentication level.

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

Submitter:  zeekay <zeekay>
Submitted:  Tue 20 Jul 2010 12:31:44 AM UTC
Votes: 100
 
Severity:  3 - Normal Status:  Wont Fix
Assigned to:  bens Open/Closed:  Closed

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>
Group administrator
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>
Group administrator
Wed 18 Mar 2015 08:36:48 AM UTC, comment #9: 
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>
Group administrator
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.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 100 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-08-29 bens Open/ClosedOpen Closed
    2016-07-22 bens StatusConfirmed Wont Fix
        Assigned toNone bens
    2014-02-24 bens StatusNone Confirmed
        SummaryKey bindings don\'t support shift modifier, behave oddly Key bindings don't support the Shift modifier
    2010-12-29 craigbarnes Carbon-Copy- Added craigbarnes

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code