GTK: fix some callbacks to listen on the treeView instead of rootWin
This commit is contained in:
parent
41f47eea1e
commit
78b6d5e52b
@ -152,17 +152,17 @@ setBindings mygui myview = do
|
|||||||
[Control] <- eventModifier
|
[Control] <- eventModifier
|
||||||
"q" <- fmap glibToString eventKeyName
|
"q" <- fmap glibToString eventKeyName
|
||||||
liftIO mainQuit
|
liftIO mainQuit
|
||||||
_ <- rootWin mygui `on` keyPressEvent $ tryEvent $ do
|
_ <- treeView mygui `on` keyPressEvent $ tryEvent $ do
|
||||||
[Control] <- eventModifier
|
[Control] <- eventModifier
|
||||||
"h" <- fmap glibToString eventKeyName
|
"h" <- fmap glibToString eventKeyName
|
||||||
liftIO $ modifyTVarIO (settings mygui)
|
liftIO $ modifyTVarIO (settings mygui)
|
||||||
(\x -> x { showHidden = not . showHidden $ x})
|
(\x -> x { showHidden = not . showHidden $ x})
|
||||||
>> (refreshTreeView' mygui myview =<< readTVarIO (fsState myview))
|
>> (refreshTreeView' mygui myview =<< readTVarIO (fsState myview))
|
||||||
_ <- rootWin mygui `on` keyPressEvent $ tryEvent $ do
|
_ <- treeView mygui `on` keyPressEvent $ tryEvent $ do
|
||||||
[Alt] <- eventModifier
|
[Alt] <- eventModifier
|
||||||
"Up" <- fmap glibToString eventKeyName
|
"Up" <- fmap glibToString eventKeyName
|
||||||
liftIO $ upDir mygui myview
|
liftIO $ upDir mygui myview
|
||||||
_ <- rootWin mygui `on` keyPressEvent $ tryEvent $ do
|
_ <- treeView mygui `on` keyPressEvent $ tryEvent $ do
|
||||||
"Delete" <- fmap glibToString eventKeyName
|
"Delete" <- fmap glibToString eventKeyName
|
||||||
liftIO $ onRow Delete mygui myview
|
liftIO $ onRow Delete mygui myview
|
||||||
_ <- treeView mygui `on` rowActivated $ (\_ _ -> onRow Open mygui myview)
|
_ <- treeView mygui `on` rowActivated $ (\_ _ -> onRow Open mygui myview)
|
||||||
|
Loading…
Reference in New Issue
Block a user