aboutsummaryrefslogtreecommitdiff
path: root/src/Keys.cc
AgeCommit message (Collapse)AuthorFilesLines
2011-11-01small gcc 4.1 compatibility fixPavel Labath1-4/+4
2011-11-01Make AutoReloadHelper truly "automatic"Pavel Labath1-1/+1
by adding the ability to automatically check for modifications at specified intervals. Using inotify() would be better, but that's not always present.
2011-11-01Add a :clear() method for removing keybindingsPavel Labath1-2/+19
2011-11-01Add new translations to the C locale and fluxbox-nls.hhPavel Labath1-0/+2
2011-11-01Simplify syntax of keys.luaPavel Labath1-38/+84
keybindings are now added like this some_keymode['Ctrl F1'] = 'RootMenu' This should be more intuitive and it allows things like this foo['Ctrl F1'] = bar['Mod1 F2']
2011-11-01Refactor keys code a bitPavel Labath1-34/+34
I uncoupled the binding lookup from actual adding. This will make it easier to add functions for removing bindings.
2011-11-01Change default keybinding to a more sane valuePavel Labath1-1/+1
2011-11-01Reintroduce support for multiple keymodesPavel Labath1-18/+38
new keymodes are created (in lua) by calling newKeyMode() and activated by calling keymode:activate()
2011-11-01(More-or-less complete) conversion of keys file to luaPavel Labath1-230/+247
keybindings are added by calling the addBinding method of default_keymode. It keys two parameters: the keys to which the action is bound to and the action itself. The action can be specified as a string (which is passed to CommandParser) or as a lua function. Support for multiple keymodes is forthcoming. For the time being, I removed the BindKey and KeyMode commands, as they will take a bit different form.
2011-11-01Attach a modifiedSig handler to the session.keyFile resourcePavel Labath1-13/+8
2011-09-14Use RefCount to store keybindingsPavel Labath1-53/+32
I'm doing this because I want to have access to keybindings from lua and for that I need more flexible ownership semantics.
2011-09-14Remove the assignment operator from a regular pointer to a RefCountPavel Labath1-1/+1
it is too easy too shoot yourself in the foot with it, other smart pointers also don't allow such assignments. If you do want to assign to a RefCount pointer, use reset(). ps: assignment between two RefCounts remains possible, of course.
2011-08-26regrab ButtonMotionMask as well (needed for 'Move' events in keysfile)Mathias Gumz1-1/+1
2011-08-26bugfix: remap keysyms to keycodes after 'MappingNotify', fix #3386257Mathias Gumz1-11/+25
setxkbmap and xmodmap both might change the keycodes. thus fluxbox needs to remap the keysyms from the currently loaded keytree to new keycodes after it received a 'MappingNotify' event. we do not reload() the keys file because: * the user might work on it right now * remap only needed symbols is cheaper than parsing the keysfile anyway
2011-05-10Make RefCount<> more sensiblePavel Labath1-3/+3
the previous version of operator*() made no sense. E.g., it violated the invariant (*ptr).foo <=> ptr->foo. The dereferencing operator now returns a reference to the pointed-to object, rather than a pointer to it. I also added a bool conversion operator, which can be used in testing the NULL-ness of the pointer. Anyone wondering if that could be done in a simpler way is encouraged to read <http://www.artima.com/cppsource/safebool.html>. And, finally, I removed the mutable flag from the m_data member, since it does not need it.
2010-09-11added '(workspace=[current])' to our default keysMathias Gumz1-2/+2
commit 882a50fe1d4930b156965c54d9b66ecb27b4c9b2 removed the hardcoded limit to cycle to windows on other workspaces, though it was and IS a good default behaviour. if users do not want this (they want to cycle to windows on other workspaces), they should explicitly avoid '(workspace=[current])' in their keysfile.
2010-09-04fixed the default 'OnTitlebar Mouse1' actionsMathias Gumz1-2/+2
2010-08-20implemented 'ActivateTab' action to (re)allow activation of tabs via mouseMathias Gumz1-0/+2
2010-08-16fixed typoMathias Gumz1-1/+1
2010-05-23mostly cosmetic fixes, mainly discovered by 'clang --analyze'Mathias Gumz1-1/+1
reordering of Resource-related stuff was because of "error: explicit specialization of 'getString' after instantiation" complaints.
2010-05-08prevent crash if m_keylist is 0Mathias Gumz1-0/+3
again, i do not know yet, why this could happen.
2010-05-08cleanup: missing initializationMathias Gumz1-0/+2
i ran across problems on a freshly installed ubuntu without any config files, m_keylist was not initialized, yet unsure why.
2010-05-05cosmeticMathias Gumz1-1/+1
2010-05-05added OnLeftGrip, OnRightGrip, OnWindowBorder modifiers for keys fileMathias Gumz1-0/+10
this allows to move some hardcoded keysbindings into the keys file and makes the code simpler
2010-03-17Changed #ifdef DEBUG ... cerr << to using fbdbg.Henrik Kinnunen1-3/+3
This will reduce the number of #ifdef DEBUG for simple debug messages. include "Debug.hh" and use fbdbg instead of cerr for debug.
2009-12-18implemented 'MoveN' and 'ClickN' support in keys file.Mathias Gumz1-43/+67
the hardcoded 'OnTitlebar Mouse1 :Raise' (see Window.cc, FluxboxWindow::buttonPressEvent()) is disabled for now, should be added to fluxbox-update_configs
2009-10-02just use the FbTk APIMathias Gumz1-0/+5
2009-08-08more fixes for fluxconf mangling the keys fileMark Tiefenbruck1-0/+7
2009-06-28add window menu and alt-tab to error case for keys fileMark Tiefenbruck1-0/+3
2009-03-04src/Keys.cc(deleteTree): use FbTk::STLUtil::destroyAndClearSecond() instead ↵Slava Semushin1-3/+5
of self-written code. No functional change. Signed-off-by: Slava Semushin <php-coder@altlinux.ru>
2008-11-02don't reload keys file on modifier map events, just re-grab keysMark Tiefenbruck1-0/+4
2008-10-04break keychains after an invalid key is pressed (which unfortunately will be ↵Mark Tiefenbruck1-9/+6
swallowed)
2008-09-28don't let KeyRelease events propagate to windowsMark Tiefenbruck1-6/+5
2008-08-22another parsing fixMark Tiefenbruck1-3/+3
2008-08-16revert focus when closing dialogsMark Tiefenbruck1-3/+3
2008-08-16move interpretation of normal hints to size hint classMark Tiefenbruck1-1/+1
2008-08-14cleanup of some filesMathias Gumz1-6/+7
2008-05-12only reload the keys file if the contents have changedMark Tiefenbruck1-25/+12
2008-04-30workaround for keys files broken by fluxconfMark Tiefenbruck1-0/+2
2008-02-11more fun with the window menuMark Tiefenbruck1-1/+7
2008-02-04Fix a freed memory access in Keys::doAction.Tomas Janousek1-2/+2
The thing next_key pointed to was getting freed in deleteTree. Signed-off-by: Tomas Janousek <tomi@nomi.cz>
2008-02-03check pointer, even though it shouldn't be necessaryMark Tiefenbruck1-1/+1
2008-01-11make FbTk::Command a template class, split parsing information out of ↵Mark Tiefenbruck1-3/+3
ObjectRegistry
2008-01-04remove old svn $Id$ tagsMark Tiefenbruck1-3/+0
2008-01-02decoupling, moved private datastructures to Keys.ccMathias Gumz1-32/+79
2007-12-30removed some unneeded headersMathias Gumz1-1/+0
2007-12-16changed CommandRegistry to a template class, renamed to ObjectRegistry<Type>Mark Tiefenbruck1-2/+2
2007-12-13added FbTk::CommandRegistry, decentralized command parsing, and made them ↵markt1-2/+2
auto-register
2007-12-09added OnTitlebar modifier to keys filemarkt1-10/+49
2007-11-22added special FocusIn/Out MouseOver/Out ChangeWorkspace keysmarkt1-4/+29