Re: Cut to clipboard

2013-10-01 Thread Michael Drake
In article 5379858e4bt...@netsurf-browser.org,
   Michael Drake t...@netsurf-browser.org wrote:
 In article 20ed3b7953.harr...@blueyonder.co.uk,
Harriet Bazley li...@orange.wingsandbeaks.org.uk wrote:

  would it be possible to have areas deleted by overtyping automatically
  cut to the clipboard, a la Impression?  Or at least have a do you
  really want to do this? warning, a la Impression II?

 Editing blunders should be handled by undo/redo.  NetSurf's textarea
 doesn't currently support this.

Supported via keyboard shortcut in the latest build.  The shortcut depends
on the front end.


   ++==+==+==+
   |   GTK  Framebuffer   |   RISC OS   |
   ++==+==+==+
   | Undo   | Redo | Undo | Redo |
   |+--+--+--|
   | Ctrl+Z | Ctrl+Y or| F8   | F9   |
   || Ctrl+Shift+Z |  |  |
   ++==+==+==+


The other front ends don't yet pass KEY_UNDO / KEY_REDO to the core.

Note that on RISC OS, F8 is undo when the caret is in a textarea, and
view source otherwise.

-- 

Michael Drake (tlsa)  http://www.netsurf-browser.org/



Re: Cut to clipboard

2013-10-01 Thread Chris Young
On Tue, 01 Oct 2013 14:16:24 +0100, Michael Drake wrote:

  Editing blunders should be handled by undo/redo.  NetSurf's textarea
  doesn't currently support this.
 
 Supported via keyboard shortcut in the latest build.  The shortcut depends
 on the front end.

   ++==+==+==+=+
   |   GTK  Framebuffer   |   RISC OS   |  AmigaOS 4  |
   ++==+==+==+==+==+
   | Undo   | Redo | Undo | Redo | Undo | Redo |
   |+--+--+--|--+--+
   | Ctrl+Z | Ctrl+Y or| F8   | F9   | RAmiga+Z | RAmiga+Y |
   || Ctrl+Shift+Z |  |  |  |  |
   ++==+==+==+==+==+

 The other front ends don't yet pass KEY_UNDO / KEY_REDO to the core.

AmigaOS frontend does now, see above.
I've used RAmiga+Z because that's what the Style Guide says should be
Undo, despite Workbench using Z for Clear selection.  I've removed the
shortcut from Clear selection as I don't think it needs one anyway
(the Style Guide didn't have an opinion on that or Redo).

Are there any can_undo()/can_redo() type functions?  I'd like to
disable the items when they can't be used, although it's not a major
problem.

Chris



Re: Cut to clipboard

2013-10-01 Thread Michael Drake
In article
out-524b1c1a.md-1.4.17.chris.yo...@unsatisfactorysoftware.co.uk,
   Chris Young chris.yo...@unsatisfactorysoftware.co.uk wrote:

 I've removed the shortcut from Clear selection as I don't think it needs
 one anyway (the Style Guide didn't have an opinion on that or Redo).

The Escape key normally acts the same as clear selection.

 Are there any can_undo()/can_redo() type functions?

No.  At least, not yet.

-- 

Michael Drake (tlsa)  http://www.netsurf-browser.org/