[code] [textadept] Key binding modifier changes in hg

From: Mitchell <m.att.foicica.com>
Date: Mon, 29 Jun 2020 12:18:03 -0400 (EDT)

Hi,

The nightly builds are now using new modifier keys for key bindings, and these new modifiers will be used in Textadept 11. Previous modifiers will still work for now, but you'll get a warning to update them on startup.

Previously, "Ctrl", "Alt", "Command", "Meta", and "Shift" were 'c', 'a', 'm', 'm', and 's', respectively. That means Ctrl+N for `buffer.new` was defined as `keys.cn = buffer.new`, and Ctrl+Alt+\ for toggling wrap mode was defined as `keys['ca\\'] = ...`. These modifier key representations aren't exactly intuitive, especially when viewed in the "Tools > Select Command" list.

Now Textadept uses 'ctrl', 'alt', 'cmd', 'meta', and 'shift' modifiers. The previous examples would now be `keys['ctrl+n'] = buffer.new` and `keys['ctrl+alt+\\'] = ...`, respectively. These more display-friendly modifiers will also show up in the "Tools > Select Command" list.

More details are in this commit[1].

Cheers,
Mitchell

[1]: https://foicica.com/hg/textadept/rev/b665f0c8a2cb

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Mon 29 Jun 2020 - 12:18:03 EDT

This archive was generated by hypermail 2.2.0 : Tue 30 Jun 2020 - 06:35:19 EDT