diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2015-03-01 19:03:49 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2015-03-02 00:03:53 +0100 |
commit | 800bbd8a13ccee0a82b61a47a04b01d1b2b68976 (patch) | |
tree | 9cfe58b69627fb8821247f47404acac1e5bd8b08 /src/interface-curses.cpp | |
parent | a399be7f24d58080282316d1ec529bf5aed67634 (diff) | |
download | sciteco-800bbd8a13ccee0a82b61a47a04b01d1b2b68976.tar.gz |
fixed function key handling on GTK UI
* we cannot prevent GTK from delivering the function key presses,
as we can on Curses. Therefore Cmdline::fnmacro() checks again if
function keys are enabled.
Diffstat (limited to 'src/interface-curses.cpp')
-rw-r--r-- | src/interface-curses.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/interface-curses.cpp b/src/interface-curses.cpp index 1f4506a..dd08e8f 100644 --- a/src/interface-curses.cpp +++ b/src/interface-curses.cpp @@ -484,6 +484,12 @@ event_loop_iter() { int key; + /* + * Setting function key processing is important + * on Unix Curses, as ESCAPE is handled as the beginning + * of a escape sequence when terminal emulators are + * involved. + */ keypad(interface.cmdline_window, Flags::ed & Flags::ED_FNKEYS); /* no special <CTRL/C> handling */ |