activate the menu with ctrl+space
This commit is contained in:
parent
7590d2101d
commit
33fbbd3bc6
|
@ -1,3 +1,10 @@
|
||||||
|
2015-12-20 Markus Gans <guru.mail@muenster.de>
|
||||||
|
* Add the possibility to switch off the cursor optimization
|
||||||
|
for bad ANSI-terminal implementations like HyperTerminal
|
||||||
|
(e.g. horizontal absolute position (ch) has there no function)
|
||||||
|
* Now you can activate the menu with ctrl+space, too.
|
||||||
|
(For terminals with no meta key support)
|
||||||
|
|
||||||
2015-12-20 Markus Gans <guru.mail@muenster.de>
|
2015-12-20 Markus Gans <guru.mail@muenster.de>
|
||||||
* Bug fix in FTerm updateVTerm() for updates from vdesktop
|
* Bug fix in FTerm updateVTerm() for updates from vdesktop
|
||||||
* Add raiseWindow() to FMenuBar::leaveMenuBar()
|
* Add raiseWindow() to FMenuBar::leaveMenuBar()
|
||||||
|
|
|
@ -174,7 +174,6 @@ class fc
|
||||||
// keyboard - single keys
|
// keyboard - single keys
|
||||||
enum keys
|
enum keys
|
||||||
{
|
{
|
||||||
Fckey_at = 0x0000000, // control-@
|
|
||||||
Fckey_a = 0x0000001, // control-a
|
Fckey_a = 0x0000001, // control-a
|
||||||
Fckey_b = 0x0000002, // control-b
|
Fckey_b = 0x0000002, // control-b
|
||||||
Fckey_c = 0x0000003, // control-c
|
Fckey_c = 0x0000003, // control-c
|
||||||
|
@ -207,6 +206,7 @@ class fc
|
||||||
Fckey_caret = 0x000001e, // control-^
|
Fckey_caret = 0x000001e, // control-^
|
||||||
Fckey_underscore = 0x000001f, // control-_
|
Fckey_underscore = 0x000001f, // control-_
|
||||||
Fkey_space = 0x0000020,
|
Fkey_space = 0x0000020,
|
||||||
|
Fckey_space = 0x1000020, // control-space
|
||||||
Fkey_backspace = 0x1000100,
|
Fkey_backspace = 0x1000100,
|
||||||
Fkey_catab = 0x1000101,
|
Fkey_catab = 0x1000101,
|
||||||
Fkey_clear = 0x1000102,
|
Fkey_clear = 0x1000102,
|
||||||
|
|
|
@ -415,7 +415,6 @@ keyname;
|
||||||
|
|
||||||
static keyname FkeyName[] =
|
static keyname FkeyName[] =
|
||||||
{
|
{
|
||||||
{ fc::Fckey_at , "Ctrl+@" },
|
|
||||||
{ fc::Fckey_a , "Ctrl+A" },
|
{ fc::Fckey_a , "Ctrl+A" },
|
||||||
{ fc::Fckey_b , "Ctrl+B" },
|
{ fc::Fckey_b , "Ctrl+B" },
|
||||||
{ fc::Fckey_c , "Ctrl+C" },
|
{ fc::Fckey_c , "Ctrl+C" },
|
||||||
|
@ -447,6 +446,7 @@ static keyname FkeyName[] =
|
||||||
{ fc::Fckey_caret , "Ctrl+^" },
|
{ fc::Fckey_caret , "Ctrl+^" },
|
||||||
{ fc::Fckey_underscore , "Ctrl+_" },
|
{ fc::Fckey_underscore , "Ctrl+_" },
|
||||||
{ fc::Fkey_space , "Space" },
|
{ fc::Fkey_space , "Space" },
|
||||||
|
{ fc::Fckey_space , "Ctrl+Space" }, // Ctrl+(Space or @)
|
||||||
{ fc::Fkey_backspace , "Backspace" },
|
{ fc::Fkey_backspace , "Backspace" },
|
||||||
{ fc::Fkey_catab , "Clear-All-Tabs" },
|
{ fc::Fkey_catab , "Clear-All-Tabs" },
|
||||||
{ fc::Fkey_clear , "Clear-Screen" },
|
{ fc::Fkey_clear , "Clear-Screen" },
|
||||||
|
|
|
@ -48,6 +48,7 @@ void FMenuBar::init()
|
||||||
getRootWidget()->setTopPadding(1, true);
|
getRootWidget()->setTopPadding(1, true);
|
||||||
setMenuBar(this);
|
setMenuBar(this);
|
||||||
addAccelerator (fc::Fkey_f10);
|
addAccelerator (fc::Fkey_f10);
|
||||||
|
addAccelerator (fc::Fckey_space);
|
||||||
foregroundColor = wc.menu_active_fg;
|
foregroundColor = wc.menu_active_fg;
|
||||||
backgroundColor = wc.menu_active_bg;
|
backgroundColor = wc.menu_active_bg;
|
||||||
window_object = true;
|
window_object = true;
|
||||||
|
|
Loading…
Reference in New Issue