summaryrefslogtreecommitdiff
path: root/libs/gtkmm2ext/keyboard.cc
AgeCommit message (Collapse)Author
2017-04-19Use XMLNode::get/set_property API in Gtkmm2ext::Keyboard classTim Mayberry
2017-03-13Clean up existing bindings on resetRobin Gareus
2016-12-13changes to adapt to modified version of GTK/Quartz which uses only MOD2 for ↵Paul Davis
Command, everywhere. The default version of GTK2/Quartz uses MOD2+META for keys and MOD2 for scroll, which is basically insane
2016-10-26Fix restoration of key bindings assigned to Windows+key, bug #7037Tim Mayberry
Windows key generates Mod4+Super (at least with the version of Gdk we use on linux) so for bindings using the Windows key to work, GDK_SUPER_MASK has to be added to modifier mask.
2016-09-29manually revert b9cab93fb116b and remove associated code.Paul Davis
For the last time, because of how GDK works, Keyboard::PrimaryModifier on MacOS MUST include MOD2 ***AND** META
2016-08-19fix optimized build compilationRobin Gareus
2016-08-19fix failure to remove keyvalue from Keyboard::state on key releasePaul Davis
2016-08-14Ensure RelevantModifierKeyMask is updated on each modifier change.nick_m
- fixes bug where changing prefs in User Interaction only took effect on restart.
2016-08-08fix definition of PrimaryModifier for Keyboard for OS XPaul Davis
2016-07-18move show_gdk_event_state() utility function from gtk2_ardour to libs/gtkmm2extPaul Davis
2016-07-14enough with umpteen "i18n.h" files. Consolidate on pbd/i18n.hPaul Davis
2016-06-21provide some Keyboard:: methods to get access to other versions of modifier ↵Paul Davis
names
2016-06-07make it possible to disable VisibilityTracker's use of WM visibilityPaul Davis
2016-05-04OMNIBUS COMMIT: prefer const XMLNode::property method (and provide a real one)Paul Davis
2016-02-22fix merge/rebase mistakePaul Davis
2016-02-22additional GTKOSX => __APPLE__ changes missed in previous commitPaul Davis
2016-02-22set PrimaryModifier on OS X to match the actual bits used by GTK for CommandPaul Davis
2016-02-22replicate the remove-all-trailing whitespace commit(s) in masterPaul Davis
2016-02-22change suffix of keybinding files to ".keys" to avoid conflict with earlier ↵Paul Davis
versions. Move some code around that should never have been inside libs/ardour to begin with.
2016-02-22more changes to Bindings, Keyboard APIsPaul Davis
2016-02-22radically change Keyboard/Binding API design to disconnect Gtk::Action ↵Paul Davis
lookup from binding definition We need this because we need binding information/objects before all Actions have been defined.
2016-02-22fix memory lifetime management issuePaul Davis
2016-02-22change/extend/rework Bindings API to allow replacement and provide ↵Paul Davis
stub/hook/call to save bindings
2016-02-22initial compilable version of saving key bindings with "new" schemePaul Davis
2016-02-22changes to Bindings and Keyboard API to support (mostly) GTK-free keyboard ↵Paul Davis
bindings
2016-02-22better system for managing kbd focus after cmd-w closing a dialog.Paul Davis
Key, Button and Focus In events in the editor+mixer windows cause the respective window to be noted as the window to which focus should return after a dialog is closed with cmd/ctrl-w
2016-02-22os x: an initial attempt at fixing loss of keyboard focus after cmd-w to ↵Paul Davis
close dialog
2016-02-21OS X: fix the handling of SUPER,HYPER,META (see code comment for more)Paul Davis
2016-02-18remove HYPER,SUPER,META modifier masks from Keyboard::RelevantModifierMask ↵Paul Davis
so that modifier_state_equals() works on OS X GTK on OS X adds META when Command is pressed even though it also uses MOD2 to indicate COMMAND. So Cmd-w was actually META-MOD2-w and modifier_state_equals(MOD2) would fail. This should have nothing but good side effects
2016-02-18add a static utility function (should really be in utils.cc and public) to ↵Paul Davis
show modifier state in english; use said function
2015-10-20remove cruftRobin Gareus
2015-10-20remove unused "copy modifier hint"Robin Gareus
2015-10-20Add tooltips to user config preferences. clean up combo ordering.nick_m
2015-10-05use quotes for in-tree pbd/glib wrapper includeRobin Gareus
2015-10-05remove unused fstream includesRobin Gareus
2015-10-05NOOP, remove trailing tabs/whitespace.Robin Gareus
2015-10-04globally remove all trailing whitespace from ardour code base.Paul Davis
Paul Davis was responsible for introducing almost all of this.
2015-09-17use pbd's gstdio compatibility wrapperRobin Gareus
2015-05-24Swap default snap modifiers (non-OSX) to avoid potential upgrade pain.nick_m
- Disable snap now defaults to alt - Snap absolute now defaults to alt-windows
2015-05-21Make the prefs less squashed looking, add another entry for OSX modifiers.nick_m
- Defaults are probably still wrong, but at least they are actual keys.
2015-05-21Move ui-centric modifiers into ArdourKeyboard, set some bad defaults.nick_m
- Also makes "Mod4" Appear as "Windows" and adds new combination "Alt-Windows" to the dropdown. - Attempt to set a pair of default snap modifiers (without knowing what it actually is for OSX) - Copy modifier now saves - Snap modifier modifier problem still remains.
2015-05-21Allow all drag -related modifiers to be set, re-instate "jump after trim"nick_m
- Copy modifier still doesn't save - Testers please edit the Extra section of ~/.ardourN/config to allow defaults to "take" - Note that the current defaults overlap. - warning - absolute snap modifier has no default and will be always "on" unless you set it!
2015-05-20Add more modifier preferences.nick_m
Note that no defaults are set - go to prefs->user interaction to ensure that nothing is set to "no modifer" also - the copy modifier doesn't actually save its state yet.
2015-05-19Remove some debugging.nick_m
2015-05-18"Lock" mode is now "Constrained", make snap absolute modifier configurable.nick_m
- user can abs/rel modifier key in prefs->user interaction suggested for linux - absolute->alt ignore snap->alt-shift - Constrained mode works the same as button 2 drag (initial move sets constraint axis).
2015-04-02Window focus handling fixes.nick_m
Many windows were not getting key events. Use magic focus infrastructure (built for widgets) to deliver key events via window focus in/out.
2014-07-10add Gtkmm2ext::Keyboard::reset_bindings()Paul Davis
2013-09-16a few DEBUG_TRACE improvementsPaul Davis
2013-07-23Fix special handling of 'zoom vertical' scroll wheel modifier key.Colin Fletcher
gtkmm2ext/keyboard.cc has a special case to emit a signal on the key-up of the modifier key used to adjust track heights in conjunction with the scroll wheel, so that the same track continues to be resized even when it's shrunk to no longer be under the mouse cursor. However, this code assumed that the modifier key for this was <Shift>. Fix it to use the event->state bit corresponding to ScrollZoomVerticalModifier instead, and rename the relevant functions to clarify that it's the 'zoom vertical' modifier key they're dealing with. Partially fixes #5610.
2013-06-21Make scroll-wheel modifier keys consistent in main editor window.Colin Fletcher
Add constants for the keyboard modifiers that should be used for vertical zoom, horizontal zoom, and horizontal scrolling in the main editor window, and use these where appropriate rather than using Keyboard::PrimaryModifier and friends directly.